blob: bb95c8a549f11a3fdd8c45b29e76d43a45695d0b [file] [log] [blame]
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -07001// Generated by the protocol buffer compiler. DO NOT EDIT!
Jan Tattermusch72ce4422016-01-20 13:54:38 -08002// source: src/proto/grpc/testing/services.proto
Jan Tattermuschbfee01d2016-04-28 10:52:41 -07003// Original file comments:
4// Copyright 2015, Google Inc.
5// All rights reserved.
6//
7// Redistribution and use in source and binary forms, with or without
8// modification, are permitted provided that the following conditions are
9// met:
10//
11// * Redistributions of source code must retain the above copyright
12// notice, this list of conditions and the following disclaimer.
13// * Redistributions in binary form must reproduce the above
14// copyright notice, this list of conditions and the following disclaimer
15// in the documentation and/or other materials provided with the
16// distribution.
17// * Neither the name of Google Inc. nor the names of its
18// contributors may be used to endorse or promote products derived from
19// this software without specific prior written permission.
20//
21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32//
33// An integration test service that covers all the method signature permutations
34// of unary/streaming requests/responses.
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -070035#region Designer generated code
36
37using System;
38using System.Threading;
39using System.Threading.Tasks;
Jan Tattermuschff4fc132017-03-14 09:27:50 +010040using grpc = global::Grpc.Core;
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -070041
42namespace Grpc.Testing {
Alexander Polcync0f4c2c2016-11-07 10:24:35 -080043 public static partial class BenchmarkService
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -070044 {
45 static readonly string __ServiceName = "grpc.testing.BenchmarkService";
46
Jan Tattermuschff4fc132017-03-14 09:27:50 +010047 static readonly grpc::Marshaller<global::Grpc.Testing.SimpleRequest> __Marshaller_SimpleRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.SimpleRequest.Parser.ParseFrom);
48 static readonly grpc::Marshaller<global::Grpc.Testing.SimpleResponse> __Marshaller_SimpleResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.SimpleResponse.Parser.ParseFrom);
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -070049
Jan Tattermuschff4fc132017-03-14 09:27:50 +010050 static readonly grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> __Method_UnaryCall = new grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(
51 grpc::MethodType.Unary,
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -070052 __ServiceName,
53 "UnaryCall",
54 __Marshaller_SimpleRequest,
55 __Marshaller_SimpleResponse);
56
Jan Tattermuschff4fc132017-03-14 09:27:50 +010057 static readonly grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> __Method_StreamingCall = new grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(
58 grpc::MethodType.DuplexStreaming,
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -070059 __ServiceName,
60 "StreamingCall",
61 __Marshaller_SimpleRequest,
62 __Marshaller_SimpleResponse);
63
Jan Tattermuschbfee01d2016-04-28 10:52:41 -070064 /// <summary>Service descriptor</summary>
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -070065 public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
66 {
Jan Tattermusch72ce4422016-01-20 13:54:38 -080067 get { return global::Grpc.Testing.ServicesReflection.Descriptor.Services[0]; }
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -070068 }
69
Jan Tattermuschbfee01d2016-04-28 10:52:41 -070070 /// <summary>Base class for server-side implementations of BenchmarkService</summary>
Alexander Polcync0f4c2c2016-11-07 10:24:35 -080071 public abstract partial class BenchmarkServiceBase
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -070072 {
Jan Tattermuschbfee01d2016-04-28 10:52:41 -070073 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +010074 /// One request followed by one response.
75 /// The server returns the client payload as-is.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -070076 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +010077 /// <param name="request">The request received from the client.</param>
78 /// <param name="context">The context of the server-side call handler being invoked.</param>
79 /// <returns>The response to send back to the client (wrapped by a task).</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +010080 public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.SimpleResponse> UnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -070081 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +010082 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -070083 }
84
Jan Tattermuschbfee01d2016-04-28 10:52:41 -070085 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +010086 /// One request followed by one response.
87 /// The server returns the client payload as-is.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -070088 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +010089 /// <param name="requestStream">Used for reading requests from the client.</param>
90 /// <param name="responseStream">Used for sending responses back to the client.</param>
91 /// <param name="context">The context of the server-side call handler being invoked.</param>
92 /// <returns>A task indicating completion of the handler.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +010093 public virtual global::System.Threading.Tasks.Task StreamingCall(grpc::IAsyncStreamReader<global::Grpc.Testing.SimpleRequest> requestStream, grpc::IServerStreamWriter<global::Grpc.Testing.SimpleResponse> responseStream, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -070094 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +010095 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -070096 }
97
98 }
99
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700100 /// <summary>Client for BenchmarkService</summary>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100101 public partial class BenchmarkServiceClient : grpc::ClientBase<BenchmarkServiceClient>
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700102 {
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700103 /// <summary>Creates a new client for BenchmarkService</summary>
104 /// <param name="channel">The channel to use to make remote calls.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100105 public BenchmarkServiceClient(grpc::Channel channel) : base(channel)
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700106 {
107 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700108 /// <summary>Creates a new client for BenchmarkService that uses a custom <c>CallInvoker</c>.</summary>
109 /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100110 public BenchmarkServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700111 {
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700112 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700113 /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700114 protected BenchmarkServiceClient() : base()
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700115 {
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700116 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700117 /// <summary>Protected constructor to allow creation of configured clients.</summary>
118 /// <param name="configuration">The client configuration.</param>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700119 protected BenchmarkServiceClient(ClientBaseConfiguration configuration) : base(configuration)
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700120 {
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700121 }
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700122
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700123 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100124 /// One request followed by one response.
125 /// The server returns the client payload as-is.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700126 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100127 /// <param name="request">The request to send to the server.</param>
128 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
129 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
130 /// <param name="cancellationToken">An optional token for canceling the call.</param>
131 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100132 public virtual global::Grpc.Testing.SimpleResponse UnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700133 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100134 return UnaryCall(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700135 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700136 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100137 /// One request followed by one response.
138 /// The server returns the client payload as-is.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700139 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100140 /// <param name="request">The request to send to the server.</param>
141 /// <param name="options">The options for the call.</param>
142 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100143 public virtual global::Grpc.Testing.SimpleResponse UnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700144 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700145 return CallInvoker.BlockingUnaryCall(__Method_UnaryCall, null, options, request);
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700146 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700147 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100148 /// One request followed by one response.
149 /// The server returns the client payload as-is.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700150 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100151 /// <param name="request">The request to send to the server.</param>
152 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
153 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
154 /// <param name="cancellationToken">An optional token for canceling the call.</param>
155 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100156 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.SimpleResponse> UnaryCallAsync(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700157 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100158 return UnaryCallAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700159 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700160 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100161 /// One request followed by one response.
162 /// The server returns the client payload as-is.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700163 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100164 /// <param name="request">The request to send to the server.</param>
165 /// <param name="options">The options for the call.</param>
166 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100167 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.SimpleResponse> UnaryCallAsync(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700168 {
169 return CallInvoker.AsyncUnaryCall(__Method_UnaryCall, null, options, request);
170 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700171 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100172 /// One request followed by one response.
173 /// The server returns the client payload as-is.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700174 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100175 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
176 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
177 /// <param name="cancellationToken">An optional token for canceling the call.</param>
178 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100179 public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> StreamingCall(grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700180 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100181 return StreamingCall(new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700182 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700183 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100184 /// One request followed by one response.
185 /// The server returns the client payload as-is.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700186 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100187 /// <param name="options">The options for the call.</param>
188 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100189 public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> StreamingCall(grpc::CallOptions options)
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700190 {
191 return CallInvoker.AsyncDuplexStreamingCall(__Method_StreamingCall, null, options);
192 }
Jan Tattermusch10098d12016-10-06 13:15:12 +0200193 /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700194 protected override BenchmarkServiceClient NewInstance(ClientBaseConfiguration configuration)
195 {
196 return new BenchmarkServiceClient(configuration);
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700197 }
198 }
199
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700200 /// <summary>Creates service definition that can be registered with a server</summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100201 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100202 public static grpc::ServerServiceDefinition BindService(BenchmarkServiceBase serviceImpl)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700203 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100204 return grpc::ServerServiceDefinition.CreateBuilder()
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700205 .AddMethod(__Method_UnaryCall, serviceImpl.UnaryCall)
206 .AddMethod(__Method_StreamingCall, serviceImpl.StreamingCall).Build();
207 }
208
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700209 }
Alexander Polcync0f4c2c2016-11-07 10:24:35 -0800210 public static partial class WorkerService
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700211 {
212 static readonly string __ServiceName = "grpc.testing.WorkerService";
213
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100214 static readonly grpc::Marshaller<global::Grpc.Testing.ServerArgs> __Marshaller_ServerArgs = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ServerArgs.Parser.ParseFrom);
215 static readonly grpc::Marshaller<global::Grpc.Testing.ServerStatus> __Marshaller_ServerStatus = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ServerStatus.Parser.ParseFrom);
216 static readonly grpc::Marshaller<global::Grpc.Testing.ClientArgs> __Marshaller_ClientArgs = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ClientArgs.Parser.ParseFrom);
217 static readonly grpc::Marshaller<global::Grpc.Testing.ClientStatus> __Marshaller_ClientStatus = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ClientStatus.Parser.ParseFrom);
218 static readonly grpc::Marshaller<global::Grpc.Testing.CoreRequest> __Marshaller_CoreRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.CoreRequest.Parser.ParseFrom);
219 static readonly grpc::Marshaller<global::Grpc.Testing.CoreResponse> __Marshaller_CoreResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.CoreResponse.Parser.ParseFrom);
220 static readonly grpc::Marshaller<global::Grpc.Testing.Void> __Marshaller_Void = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Void.Parser.ParseFrom);
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700221
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100222 static readonly grpc::Method<global::Grpc.Testing.ServerArgs, global::Grpc.Testing.ServerStatus> __Method_RunServer = new grpc::Method<global::Grpc.Testing.ServerArgs, global::Grpc.Testing.ServerStatus>(
223 grpc::MethodType.DuplexStreaming,
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700224 __ServiceName,
225 "RunServer",
226 __Marshaller_ServerArgs,
227 __Marshaller_ServerStatus);
228
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100229 static readonly grpc::Method<global::Grpc.Testing.ClientArgs, global::Grpc.Testing.ClientStatus> __Method_RunClient = new grpc::Method<global::Grpc.Testing.ClientArgs, global::Grpc.Testing.ClientStatus>(
230 grpc::MethodType.DuplexStreaming,
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700231 __ServiceName,
232 "RunClient",
233 __Marshaller_ClientArgs,
234 __Marshaller_ClientStatus);
235
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100236 static readonly grpc::Method<global::Grpc.Testing.CoreRequest, global::Grpc.Testing.CoreResponse> __Method_CoreCount = new grpc::Method<global::Grpc.Testing.CoreRequest, global::Grpc.Testing.CoreResponse>(
237 grpc::MethodType.Unary,
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800238 __ServiceName,
239 "CoreCount",
240 __Marshaller_CoreRequest,
241 __Marshaller_CoreResponse);
242
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100243 static readonly grpc::Method<global::Grpc.Testing.Void, global::Grpc.Testing.Void> __Method_QuitWorker = new grpc::Method<global::Grpc.Testing.Void, global::Grpc.Testing.Void>(
244 grpc::MethodType.Unary,
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800245 __ServiceName,
246 "QuitWorker",
247 __Marshaller_Void,
248 __Marshaller_Void);
249
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700250 /// <summary>Service descriptor</summary>
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700251 public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
252 {
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800253 get { return global::Grpc.Testing.ServicesReflection.Descriptor.Services[1]; }
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700254 }
255
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700256 /// <summary>Base class for server-side implementations of WorkerService</summary>
Alexander Polcync0f4c2c2016-11-07 10:24:35 -0800257 public abstract partial class WorkerServiceBase
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700258 {
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700259 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100260 /// Start server with specified workload.
261 /// First request sent specifies the ServerConfig followed by ServerStatus
262 /// response. After that, a "Mark" can be sent anytime to request the latest
263 /// stats. Closing the stream will initiate shutdown of the test server
264 /// and once the shutdown has finished, the OK status is sent to terminate
265 /// this RPC.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700266 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100267 /// <param name="requestStream">Used for reading requests from the client.</param>
268 /// <param name="responseStream">Used for sending responses back to the client.</param>
269 /// <param name="context">The context of the server-side call handler being invoked.</param>
270 /// <returns>A task indicating completion of the handler.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100271 public virtual global::System.Threading.Tasks.Task RunServer(grpc::IAsyncStreamReader<global::Grpc.Testing.ServerArgs> requestStream, grpc::IServerStreamWriter<global::Grpc.Testing.ServerStatus> responseStream, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700272 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100273 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700274 }
275
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700276 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100277 /// Start client with specified workload.
278 /// First request sent specifies the ClientConfig followed by ClientStatus
279 /// response. After that, a "Mark" can be sent anytime to request the latest
280 /// stats. Closing the stream will initiate shutdown of the test client
281 /// and once the shutdown has finished, the OK status is sent to terminate
282 /// this RPC.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700283 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100284 /// <param name="requestStream">Used for reading requests from the client.</param>
285 /// <param name="responseStream">Used for sending responses back to the client.</param>
286 /// <param name="context">The context of the server-side call handler being invoked.</param>
287 /// <returns>A task indicating completion of the handler.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100288 public virtual global::System.Threading.Tasks.Task RunClient(grpc::IAsyncStreamReader<global::Grpc.Testing.ClientArgs> requestStream, grpc::IServerStreamWriter<global::Grpc.Testing.ClientStatus> responseStream, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700289 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100290 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700291 }
292
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700293 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100294 /// Just return the core count - unary call
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700295 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100296 /// <param name="request">The request received from the client.</param>
297 /// <param name="context">The context of the server-side call handler being invoked.</param>
298 /// <returns>The response to send back to the client (wrapped by a task).</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100299 public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.CoreResponse> CoreCount(global::Grpc.Testing.CoreRequest request, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700300 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100301 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700302 }
303
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700304 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100305 /// Quit this worker
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700306 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100307 /// <param name="request">The request received from the client.</param>
308 /// <param name="context">The context of the server-side call handler being invoked.</param>
309 /// <returns>The response to send back to the client (wrapped by a task).</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100310 public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.Void> QuitWorker(global::Grpc.Testing.Void request, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700311 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100312 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700313 }
314
315 }
316
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700317 /// <summary>Client for WorkerService</summary>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100318 public partial class WorkerServiceClient : grpc::ClientBase<WorkerServiceClient>
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700319 {
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700320 /// <summary>Creates a new client for WorkerService</summary>
321 /// <param name="channel">The channel to use to make remote calls.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100322 public WorkerServiceClient(grpc::Channel channel) : base(channel)
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700323 {
324 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700325 /// <summary>Creates a new client for WorkerService that uses a custom <c>CallInvoker</c>.</summary>
326 /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100327 public WorkerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700328 {
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700329 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700330 /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700331 protected WorkerServiceClient() : base()
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700332 {
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700333 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700334 /// <summary>Protected constructor to allow creation of configured clients.</summary>
335 /// <param name="configuration">The client configuration.</param>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700336 protected WorkerServiceClient(ClientBaseConfiguration configuration) : base(configuration)
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700337 {
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700338 }
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700339
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700340 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100341 /// Start server with specified workload.
342 /// First request sent specifies the ServerConfig followed by ServerStatus
343 /// response. After that, a "Mark" can be sent anytime to request the latest
344 /// stats. Closing the stream will initiate shutdown of the test server
345 /// and once the shutdown has finished, the OK status is sent to terminate
346 /// this RPC.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700347 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100348 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
349 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
350 /// <param name="cancellationToken">An optional token for canceling the call.</param>
351 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100352 public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.ServerArgs, global::Grpc.Testing.ServerStatus> RunServer(grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700353 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100354 return RunServer(new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700355 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700356 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100357 /// Start server with specified workload.
358 /// First request sent specifies the ServerConfig followed by ServerStatus
359 /// response. After that, a "Mark" can be sent anytime to request the latest
360 /// stats. Closing the stream will initiate shutdown of the test server
361 /// and once the shutdown has finished, the OK status is sent to terminate
362 /// this RPC.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700363 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100364 /// <param name="options">The options for the call.</param>
365 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100366 public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.ServerArgs, global::Grpc.Testing.ServerStatus> RunServer(grpc::CallOptions options)
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800367 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700368 return CallInvoker.AsyncDuplexStreamingCall(__Method_RunServer, null, options);
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800369 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700370 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100371 /// Start client with specified workload.
372 /// First request sent specifies the ClientConfig followed by ClientStatus
373 /// response. After that, a "Mark" can be sent anytime to request the latest
374 /// stats. Closing the stream will initiate shutdown of the test client
375 /// and once the shutdown has finished, the OK status is sent to terminate
376 /// this RPC.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700377 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100378 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
379 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
380 /// <param name="cancellationToken">An optional token for canceling the call.</param>
381 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100382 public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.ClientArgs, global::Grpc.Testing.ClientStatus> RunClient(grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800383 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100384 return RunClient(new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800385 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700386 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100387 /// Start client with specified workload.
388 /// First request sent specifies the ClientConfig followed by ClientStatus
389 /// response. After that, a "Mark" can be sent anytime to request the latest
390 /// stats. Closing the stream will initiate shutdown of the test client
391 /// and once the shutdown has finished, the OK status is sent to terminate
392 /// this RPC.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700393 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100394 /// <param name="options">The options for the call.</param>
395 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100396 public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.ClientArgs, global::Grpc.Testing.ClientStatus> RunClient(grpc::CallOptions options)
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800397 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700398 return CallInvoker.AsyncDuplexStreamingCall(__Method_RunClient, null, options);
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800399 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700400 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100401 /// Just return the core count - unary call
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700402 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100403 /// <param name="request">The request to send to the server.</param>
404 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
405 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
406 /// <param name="cancellationToken">An optional token for canceling the call.</param>
407 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100408 public virtual global::Grpc.Testing.CoreResponse CoreCount(global::Grpc.Testing.CoreRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800409 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100410 return CoreCount(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800411 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700412 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100413 /// Just return the core count - unary call
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700414 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100415 /// <param name="request">The request to send to the server.</param>
416 /// <param name="options">The options for the call.</param>
417 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100418 public virtual global::Grpc.Testing.CoreResponse CoreCount(global::Grpc.Testing.CoreRequest request, grpc::CallOptions options)
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800419 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700420 return CallInvoker.BlockingUnaryCall(__Method_CoreCount, null, options, request);
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800421 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700422 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100423 /// Just return the core count - unary call
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700424 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100425 /// <param name="request">The request to send to the server.</param>
426 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
427 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
428 /// <param name="cancellationToken">An optional token for canceling the call.</param>
429 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100430 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.CoreResponse> CoreCountAsync(global::Grpc.Testing.CoreRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800431 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100432 return CoreCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800433 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700434 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100435 /// Just return the core count - unary call
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700436 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100437 /// <param name="request">The request to send to the server.</param>
438 /// <param name="options">The options for the call.</param>
439 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100440 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.CoreResponse> CoreCountAsync(global::Grpc.Testing.CoreRequest request, grpc::CallOptions options)
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800441 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700442 return CallInvoker.AsyncUnaryCall(__Method_CoreCount, null, options, request);
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800443 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700444 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100445 /// Quit this worker
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700446 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100447 /// <param name="request">The request to send to the server.</param>
448 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
449 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
450 /// <param name="cancellationToken">An optional token for canceling the call.</param>
451 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100452 public virtual global::Grpc.Testing.Void QuitWorker(global::Grpc.Testing.Void request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800453 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100454 return QuitWorker(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700455 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700456 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100457 /// Quit this worker
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700458 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100459 /// <param name="request">The request to send to the server.</param>
460 /// <param name="options">The options for the call.</param>
461 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100462 public virtual global::Grpc.Testing.Void QuitWorker(global::Grpc.Testing.Void request, grpc::CallOptions options)
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700463 {
464 return CallInvoker.BlockingUnaryCall(__Method_QuitWorker, null, options, request);
465 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700466 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100467 /// Quit this worker
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700468 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100469 /// <param name="request">The request to send to the server.</param>
470 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
471 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
472 /// <param name="cancellationToken">An optional token for canceling the call.</param>
473 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100474 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.Void> QuitWorkerAsync(global::Grpc.Testing.Void request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700475 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100476 return QuitWorkerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700477 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700478 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100479 /// Quit this worker
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700480 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100481 /// <param name="request">The request to send to the server.</param>
482 /// <param name="options">The options for the call.</param>
483 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100484 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.Void> QuitWorkerAsync(global::Grpc.Testing.Void request, grpc::CallOptions options)
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700485 {
486 return CallInvoker.AsyncUnaryCall(__Method_QuitWorker, null, options, request);
487 }
Jan Tattermusch10098d12016-10-06 13:15:12 +0200488 /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700489 protected override WorkerServiceClient NewInstance(ClientBaseConfiguration configuration)
490 {
491 return new WorkerServiceClient(configuration);
Jan Tattermusch1cbb5672016-02-18 14:27:28 -0800492 }
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700493 }
494
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700495 /// <summary>Creates service definition that can be registered with a server</summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100496 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100497 public static grpc::ServerServiceDefinition BindService(WorkerServiceBase serviceImpl)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700498 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100499 return grpc::ServerServiceDefinition.CreateBuilder()
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700500 .AddMethod(__Method_RunServer, serviceImpl.RunServer)
501 .AddMethod(__Method_RunClient, serviceImpl.RunClient)
502 .AddMethod(__Method_CoreCount, serviceImpl.CoreCount)
503 .AddMethod(__Method_QuitWorker, serviceImpl.QuitWorker).Build();
504 }
505
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -0700506 }
507}
508#endregion