|
|
@ -196,34 +196,34 @@ namespace Grpc.Testing { |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// One empty request followed by one empty response. |
|
|
|
/// One empty request followed by one empty response. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
Task<global::Grpc.Testing.Empty> EmptyCall(global::Grpc.Testing.Empty request, ServerCallContext context); |
|
|
|
global::System.Threading.Tasks.Task<global::Grpc.Testing.Empty> EmptyCall(global::Grpc.Testing.Empty request, ServerCallContext context); |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// One request followed by one response. |
|
|
|
/// One request followed by one response. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
Task<global::Grpc.Testing.SimpleResponse> UnaryCall(global::Grpc.Testing.SimpleRequest request, ServerCallContext context); |
|
|
|
global::System.Threading.Tasks.Task<global::Grpc.Testing.SimpleResponse> UnaryCall(global::Grpc.Testing.SimpleRequest request, ServerCallContext context); |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// One request followed by a sequence of responses (streamed download). |
|
|
|
/// One request followed by a sequence of responses (streamed download). |
|
|
|
/// The server returns the payload with client desired type and sizes. |
|
|
|
/// The server returns the payload with client desired type and sizes. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
Task StreamingOutputCall(global::Grpc.Testing.StreamingOutputCallRequest request, IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, ServerCallContext context); |
|
|
|
global::System.Threading.Tasks.Task StreamingOutputCall(global::Grpc.Testing.StreamingOutputCallRequest request, IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, ServerCallContext context); |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// A sequence of requests followed by one response (streamed upload). |
|
|
|
/// A sequence of requests followed by one response (streamed upload). |
|
|
|
/// The server returns the aggregated size of client payload as the result. |
|
|
|
/// The server returns the aggregated size of client payload as the result. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
Task<global::Grpc.Testing.StreamingInputCallResponse> StreamingInputCall(IAsyncStreamReader<global::Grpc.Testing.StreamingInputCallRequest> requestStream, ServerCallContext context); |
|
|
|
global::System.Threading.Tasks.Task<global::Grpc.Testing.StreamingInputCallResponse> StreamingInputCall(IAsyncStreamReader<global::Grpc.Testing.StreamingInputCallRequest> requestStream, ServerCallContext context); |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// A sequence of requests with each request served by the server immediately. |
|
|
|
/// A sequence of requests with each request served by the server immediately. |
|
|
|
/// As one request could lead to multiple responses, this interface |
|
|
|
/// As one request could lead to multiple responses, this interface |
|
|
|
/// demonstrates the idea of full duplexing. |
|
|
|
/// demonstrates the idea of full duplexing. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
Task FullDuplexCall(IAsyncStreamReader<global::Grpc.Testing.StreamingOutputCallRequest> requestStream, IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, ServerCallContext context); |
|
|
|
global::System.Threading.Tasks.Task FullDuplexCall(IAsyncStreamReader<global::Grpc.Testing.StreamingOutputCallRequest> requestStream, IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, ServerCallContext context); |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// A sequence of requests followed by a sequence of responses. |
|
|
|
/// A sequence of requests followed by a sequence of responses. |
|
|
|
/// The server buffers all the client requests and then serves them in order. A |
|
|
|
/// The server buffers all the client requests and then serves them in order. A |
|
|
|
/// stream of responses are returned to the client when the server starts with |
|
|
|
/// stream of responses are returned to the client when the server starts with |
|
|
|
/// first request. |
|
|
|
/// first request. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
Task HalfDuplexCall(IAsyncStreamReader<global::Grpc.Testing.StreamingOutputCallRequest> requestStream, IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, ServerCallContext context); |
|
|
|
global::System.Threading.Tasks.Task HalfDuplexCall(IAsyncStreamReader<global::Grpc.Testing.StreamingOutputCallRequest> requestStream, IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, ServerCallContext context); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>Base class for server-side implementations of TestService</summary> |
|
|
|
/// <summary>Base class for server-side implementations of TestService</summary> |
|
|
@ -232,7 +232,7 @@ namespace Grpc.Testing { |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// One empty request followed by one empty response. |
|
|
|
/// One empty request followed by one empty response. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public virtual Task<global::Grpc.Testing.Empty> EmptyCall(global::Grpc.Testing.Empty request, ServerCallContext context) |
|
|
|
public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.Empty> EmptyCall(global::Grpc.Testing.Empty request, ServerCallContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
} |
|
|
|
} |
|
|
@ -240,7 +240,7 @@ namespace Grpc.Testing { |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// One request followed by one response. |
|
|
|
/// One request followed by one response. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public virtual Task<global::Grpc.Testing.SimpleResponse> UnaryCall(global::Grpc.Testing.SimpleRequest request, ServerCallContext context) |
|
|
|
public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.SimpleResponse> UnaryCall(global::Grpc.Testing.SimpleRequest request, ServerCallContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
} |
|
|
|
} |
|
|
@ -249,7 +249,7 @@ namespace Grpc.Testing { |
|
|
|
/// One request followed by a sequence of responses (streamed download). |
|
|
|
/// One request followed by a sequence of responses (streamed download). |
|
|
|
/// The server returns the payload with client desired type and sizes. |
|
|
|
/// The server returns the payload with client desired type and sizes. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public virtual Task StreamingOutputCall(global::Grpc.Testing.StreamingOutputCallRequest request, IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, ServerCallContext context) |
|
|
|
public virtual global::System.Threading.Tasks.Task StreamingOutputCall(global::Grpc.Testing.StreamingOutputCallRequest request, IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, ServerCallContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
} |
|
|
|
} |
|
|
@ -258,7 +258,7 @@ namespace Grpc.Testing { |
|
|
|
/// A sequence of requests followed by one response (streamed upload). |
|
|
|
/// A sequence of requests followed by one response (streamed upload). |
|
|
|
/// The server returns the aggregated size of client payload as the result. |
|
|
|
/// The server returns the aggregated size of client payload as the result. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public virtual Task<global::Grpc.Testing.StreamingInputCallResponse> StreamingInputCall(IAsyncStreamReader<global::Grpc.Testing.StreamingInputCallRequest> requestStream, ServerCallContext context) |
|
|
|
public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.StreamingInputCallResponse> StreamingInputCall(IAsyncStreamReader<global::Grpc.Testing.StreamingInputCallRequest> requestStream, ServerCallContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
} |
|
|
|
} |
|
|
@ -268,7 +268,7 @@ namespace Grpc.Testing { |
|
|
|
/// As one request could lead to multiple responses, this interface |
|
|
|
/// As one request could lead to multiple responses, this interface |
|
|
|
/// demonstrates the idea of full duplexing. |
|
|
|
/// demonstrates the idea of full duplexing. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public virtual Task FullDuplexCall(IAsyncStreamReader<global::Grpc.Testing.StreamingOutputCallRequest> requestStream, IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, ServerCallContext context) |
|
|
|
public virtual global::System.Threading.Tasks.Task FullDuplexCall(IAsyncStreamReader<global::Grpc.Testing.StreamingOutputCallRequest> requestStream, IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, ServerCallContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
} |
|
|
|
} |
|
|
@ -279,7 +279,7 @@ namespace Grpc.Testing { |
|
|
|
/// stream of responses are returned to the client when the server starts with |
|
|
|
/// stream of responses are returned to the client when the server starts with |
|
|
|
/// first request. |
|
|
|
/// first request. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public virtual Task HalfDuplexCall(IAsyncStreamReader<global::Grpc.Testing.StreamingOutputCallRequest> requestStream, IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, ServerCallContext context) |
|
|
|
public virtual global::System.Threading.Tasks.Task HalfDuplexCall(IAsyncStreamReader<global::Grpc.Testing.StreamingOutputCallRequest> requestStream, IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, ServerCallContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
} |
|
|
|
} |
|
|
@ -525,7 +525,7 @@ namespace Grpc.Testing { |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// A call that no server should implement |
|
|
|
/// A call that no server should implement |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
Task<global::Grpc.Testing.Empty> UnimplementedCall(global::Grpc.Testing.Empty request, ServerCallContext context); |
|
|
|
global::System.Threading.Tasks.Task<global::Grpc.Testing.Empty> UnimplementedCall(global::Grpc.Testing.Empty request, ServerCallContext context); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>Base class for server-side implementations of UnimplementedService</summary> |
|
|
|
/// <summary>Base class for server-side implementations of UnimplementedService</summary> |
|
|
@ -534,7 +534,7 @@ namespace Grpc.Testing { |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// A call that no server should implement |
|
|
|
/// A call that no server should implement |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public virtual Task<global::Grpc.Testing.Empty> UnimplementedCall(global::Grpc.Testing.Empty request, ServerCallContext context) |
|
|
|
public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.Empty> UnimplementedCall(global::Grpc.Testing.Empty request, ServerCallContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
} |
|
|
|
} |
|
|
@ -669,19 +669,19 @@ namespace Grpc.Testing { |
|
|
|
[System.Obsolete("Service implementations should inherit from the generated abstract base class instead.")] |
|
|
|
[System.Obsolete("Service implementations should inherit from the generated abstract base class instead.")] |
|
|
|
public interface IReconnectService |
|
|
|
public interface IReconnectService |
|
|
|
{ |
|
|
|
{ |
|
|
|
Task<global::Grpc.Testing.Empty> Start(global::Grpc.Testing.ReconnectParams request, ServerCallContext context); |
|
|
|
global::System.Threading.Tasks.Task<global::Grpc.Testing.Empty> Start(global::Grpc.Testing.ReconnectParams request, ServerCallContext context); |
|
|
|
Task<global::Grpc.Testing.ReconnectInfo> Stop(global::Grpc.Testing.Empty request, ServerCallContext context); |
|
|
|
global::System.Threading.Tasks.Task<global::Grpc.Testing.ReconnectInfo> Stop(global::Grpc.Testing.Empty request, ServerCallContext context); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>Base class for server-side implementations of ReconnectService</summary> |
|
|
|
/// <summary>Base class for server-side implementations of ReconnectService</summary> |
|
|
|
public abstract class ReconnectServiceBase |
|
|
|
public abstract class ReconnectServiceBase |
|
|
|
{ |
|
|
|
{ |
|
|
|
public virtual Task<global::Grpc.Testing.Empty> Start(global::Grpc.Testing.ReconnectParams request, ServerCallContext context) |
|
|
|
public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.Empty> Start(global::Grpc.Testing.ReconnectParams request, ServerCallContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public virtual Task<global::Grpc.Testing.ReconnectInfo> Stop(global::Grpc.Testing.Empty request, ServerCallContext context) |
|
|
|
public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.ReconnectInfo> Stop(global::Grpc.Testing.Empty request, ServerCallContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
throw new RpcException(new Status(StatusCode.Unimplemented, "")); |
|
|
|
} |
|
|
|
} |
|
|
|