Index: third_party/grpc/src/csharp/Grpc.IntegrationTesting/IClientRunner.cs |
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs b/third_party/grpc/src/csharp/Grpc.IntegrationTesting/IClientRunner.cs |
similarity index 69% |
copy from third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs |
copy to third_party/grpc/src/csharp/Grpc.IntegrationTesting/IClientRunner.cs |
index 318d58c968a58a35a3ccd45ee1c7b1f0df275546..39b94f1e6d1b9e020879562ff11ee6494b13acc0 100644 |
--- a/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs |
+++ b/third_party/grpc/src/csharp/Grpc.IntegrationTesting/IClientRunner.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,40 @@ |
// 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; |
+using System.Collections.Generic; |
+using System.Diagnostics; |
+using System.IO; |
+using System.Linq; |
+using System.Text.RegularExpressions; |
+using System.Threading.Tasks; |
+using Google.Protobuf; |
+using Grpc.Core; |
+using Grpc.Core.Utils; |
+using NUnit.Framework; |
+using Grpc.Testing; |
+ |
+namespace Grpc.IntegrationTesting |
{ |
/// <summary> |
- /// Interface implemented by all descriptor types. |
+ /// Abstract client runner. |
/// </summary> |
- public interface IDescriptor |
+ public interface IClientRunner |
{ |
/// <summary> |
- /// Returns the name of the entity (message, field etc) being described. |
- /// </summary> |
- string Name { get; } |
- |
- /// <summary> |
- /// Returns the fully-qualified name of the entity being described. |
+ /// Gets stats snapshot. |
/// </summary> |
- string FullName { get; } |
+ /// <returns>The stats.</returns> |
+ ClientStats GetStats(bool reset); |
/// <summary> |
- /// Returns the descriptor for the .proto file that this entity is part of. |
+ /// Asynchronously stops the client. |
/// </summary> |
- FileDescriptor File { get; } |
- } |
-} |
+ /// <returns>Task that finishes when client has come to a full stop.</returns> |
+ Task StopAsync(); |
+ } |
+ |
+} |