Index: third_party/grpc/src/csharp/Grpc.Core/ChannelState.cs |
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs b/third_party/grpc/src/csharp/Grpc.Core/ChannelState.cs |
similarity index 72% |
copy from third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs |
copy to third_party/grpc/src/csharp/Grpc.Core/ChannelState.cs |
index 318d58c968a58a35a3ccd45ee1c7b1f0df275546..d293b98f7537876b5fd3579ceaa1aff21cb0db3c 100644 |
--- a/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs |
+++ b/third_party/grpc/src/csharp/Grpc.Core/ChannelState.cs |
@@ -1,7 +1,7 @@ |
#region Copyright notice and license |
-// Protocol Buffers - Google's data interchange format |
-// Copyright 2008 Google Inc. All rights reserved. |
-// https://developers.google.com/protocol-buffers/ |
+ |
+// Copyright 2015, Google Inc. |
+// All rights reserved. |
// |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
@@ -28,28 +28,42 @@ |
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+ |
#endregion |
-namespace Google.Protobuf.Reflection |
+using System; |
+ |
+namespace Grpc.Core |
{ |
/// <summary> |
- /// Interface implemented by all descriptor types. |
+ /// Connectivity state of a channel. |
+ /// Based on grpc_connectivity_state from grpc/grpc.h |
/// </summary> |
- public interface IDescriptor |
+ public enum ChannelState |
{ |
/// <summary> |
- /// Returns the name of the entity (message, field etc) being described. |
+ /// Channel is idle |
+ /// </summary> |
+ Idle, |
+ |
+ /// <summary> |
+ /// Channel is connecting |
+ /// </summary> |
+ Connecting, |
+ |
+ /// <summary> |
+ /// Channel is ready for work |
/// </summary> |
- string Name { get; } |
+ Ready, |
/// <summary> |
- /// Returns the fully-qualified name of the entity being described. |
+ /// Channel has seen a failure but expects to recover |
/// </summary> |
- string FullName { get; } |
+ TransientFailure, |
/// <summary> |
- /// Returns the descriptor for the .proto file that this entity is part of. |
+ /// Channel has seen a failure that it cannot recover from |
/// </summary> |
- FileDescriptor File { get; } |
- } |
-} |
+ FatalFailure |
+ } |
+} |