|
|
@ -22,36 +22,42 @@ namespace grpc.testing { |
|
|
|
|
|
|
|
|
|
|
|
static readonly Method<global::grpc.testing.Empty, global::grpc.testing.Empty> __Method_EmptyCall = new Method<global::grpc.testing.Empty, global::grpc.testing.Empty>( |
|
|
|
static readonly Method<global::grpc.testing.Empty, global::grpc.testing.Empty> __Method_EmptyCall = new Method<global::grpc.testing.Empty, global::grpc.testing.Empty>( |
|
|
|
MethodType.Unary, |
|
|
|
MethodType.Unary, |
|
|
|
|
|
|
|
__ServiceName, |
|
|
|
"EmptyCall", |
|
|
|
"EmptyCall", |
|
|
|
__Marshaller_Empty, |
|
|
|
__Marshaller_Empty, |
|
|
|
__Marshaller_Empty); |
|
|
|
__Marshaller_Empty); |
|
|
|
|
|
|
|
|
|
|
|
static readonly Method<global::grpc.testing.SimpleRequest, global::grpc.testing.SimpleResponse> __Method_UnaryCall = new Method<global::grpc.testing.SimpleRequest, global::grpc.testing.SimpleResponse>( |
|
|
|
static readonly Method<global::grpc.testing.SimpleRequest, global::grpc.testing.SimpleResponse> __Method_UnaryCall = new Method<global::grpc.testing.SimpleRequest, global::grpc.testing.SimpleResponse>( |
|
|
|
MethodType.Unary, |
|
|
|
MethodType.Unary, |
|
|
|
|
|
|
|
__ServiceName, |
|
|
|
"UnaryCall", |
|
|
|
"UnaryCall", |
|
|
|
__Marshaller_SimpleRequest, |
|
|
|
__Marshaller_SimpleRequest, |
|
|
|
__Marshaller_SimpleResponse); |
|
|
|
__Marshaller_SimpleResponse); |
|
|
|
|
|
|
|
|
|
|
|
static readonly Method<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> __Method_StreamingOutputCall = new Method<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse>( |
|
|
|
static readonly Method<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> __Method_StreamingOutputCall = new Method<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse>( |
|
|
|
MethodType.ServerStreaming, |
|
|
|
MethodType.ServerStreaming, |
|
|
|
|
|
|
|
__ServiceName, |
|
|
|
"StreamingOutputCall", |
|
|
|
"StreamingOutputCall", |
|
|
|
__Marshaller_StreamingOutputCallRequest, |
|
|
|
__Marshaller_StreamingOutputCallRequest, |
|
|
|
__Marshaller_StreamingOutputCallResponse); |
|
|
|
__Marshaller_StreamingOutputCallResponse); |
|
|
|
|
|
|
|
|
|
|
|
static readonly Method<global::grpc.testing.StreamingInputCallRequest, global::grpc.testing.StreamingInputCallResponse> __Method_StreamingInputCall = new Method<global::grpc.testing.StreamingInputCallRequest, global::grpc.testing.StreamingInputCallResponse>( |
|
|
|
static readonly Method<global::grpc.testing.StreamingInputCallRequest, global::grpc.testing.StreamingInputCallResponse> __Method_StreamingInputCall = new Method<global::grpc.testing.StreamingInputCallRequest, global::grpc.testing.StreamingInputCallResponse>( |
|
|
|
MethodType.ClientStreaming, |
|
|
|
MethodType.ClientStreaming, |
|
|
|
|
|
|
|
__ServiceName, |
|
|
|
"StreamingInputCall", |
|
|
|
"StreamingInputCall", |
|
|
|
__Marshaller_StreamingInputCallRequest, |
|
|
|
__Marshaller_StreamingInputCallRequest, |
|
|
|
__Marshaller_StreamingInputCallResponse); |
|
|
|
__Marshaller_StreamingInputCallResponse); |
|
|
|
|
|
|
|
|
|
|
|
static readonly Method<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> __Method_FullDuplexCall = new Method<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse>( |
|
|
|
static readonly Method<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> __Method_FullDuplexCall = new Method<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse>( |
|
|
|
MethodType.DuplexStreaming, |
|
|
|
MethodType.DuplexStreaming, |
|
|
|
|
|
|
|
__ServiceName, |
|
|
|
"FullDuplexCall", |
|
|
|
"FullDuplexCall", |
|
|
|
__Marshaller_StreamingOutputCallRequest, |
|
|
|
__Marshaller_StreamingOutputCallRequest, |
|
|
|
__Marshaller_StreamingOutputCallResponse); |
|
|
|
__Marshaller_StreamingOutputCallResponse); |
|
|
|
|
|
|
|
|
|
|
|
static readonly Method<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> __Method_HalfDuplexCall = new Method<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse>( |
|
|
|
static readonly Method<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> __Method_HalfDuplexCall = new Method<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse>( |
|
|
|
MethodType.DuplexStreaming, |
|
|
|
MethodType.DuplexStreaming, |
|
|
|
|
|
|
|
__ServiceName, |
|
|
|
"HalfDuplexCall", |
|
|
|
"HalfDuplexCall", |
|
|
|
__Marshaller_StreamingOutputCallRequest, |
|
|
|
__Marshaller_StreamingOutputCallRequest, |
|
|
|
__Marshaller_StreamingOutputCallResponse); |
|
|
|
__Marshaller_StreamingOutputCallResponse); |
|
|
@ -60,13 +66,21 @@ namespace grpc.testing { |
|
|
|
public interface ITestServiceClient |
|
|
|
public interface ITestServiceClient |
|
|
|
{ |
|
|
|
{ |
|
|
|
global::grpc.testing.Empty EmptyCall(global::grpc.testing.Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
global::grpc.testing.Empty EmptyCall(global::grpc.testing.Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
|
|
|
|
global::grpc.testing.Empty EmptyCall(global::grpc.testing.Empty request, CallOptions options); |
|
|
|
AsyncUnaryCall<global::grpc.testing.Empty> EmptyCallAsync(global::grpc.testing.Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
AsyncUnaryCall<global::grpc.testing.Empty> EmptyCallAsync(global::grpc.testing.Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
|
|
|
|
AsyncUnaryCall<global::grpc.testing.Empty> EmptyCallAsync(global::grpc.testing.Empty request, CallOptions options); |
|
|
|
global::grpc.testing.SimpleResponse UnaryCall(global::grpc.testing.SimpleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
global::grpc.testing.SimpleResponse UnaryCall(global::grpc.testing.SimpleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
|
|
|
|
global::grpc.testing.SimpleResponse UnaryCall(global::grpc.testing.SimpleRequest request, CallOptions options); |
|
|
|
AsyncUnaryCall<global::grpc.testing.SimpleResponse> UnaryCallAsync(global::grpc.testing.SimpleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
AsyncUnaryCall<global::grpc.testing.SimpleResponse> UnaryCallAsync(global::grpc.testing.SimpleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
|
|
|
|
AsyncUnaryCall<global::grpc.testing.SimpleResponse> UnaryCallAsync(global::grpc.testing.SimpleRequest request, CallOptions options); |
|
|
|
AsyncServerStreamingCall<global::grpc.testing.StreamingOutputCallResponse> StreamingOutputCall(global::grpc.testing.StreamingOutputCallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
AsyncServerStreamingCall<global::grpc.testing.StreamingOutputCallResponse> StreamingOutputCall(global::grpc.testing.StreamingOutputCallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
|
|
|
|
AsyncServerStreamingCall<global::grpc.testing.StreamingOutputCallResponse> StreamingOutputCall(global::grpc.testing.StreamingOutputCallRequest request, CallOptions options); |
|
|
|
AsyncClientStreamingCall<global::grpc.testing.StreamingInputCallRequest, global::grpc.testing.StreamingInputCallResponse> StreamingInputCall(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
AsyncClientStreamingCall<global::grpc.testing.StreamingInputCallRequest, global::grpc.testing.StreamingInputCallResponse> StreamingInputCall(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
|
|
|
|
AsyncClientStreamingCall<global::grpc.testing.StreamingInputCallRequest, global::grpc.testing.StreamingInputCallResponse> StreamingInputCall(CallOptions options); |
|
|
|
AsyncDuplexStreamingCall<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> FullDuplexCall(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
AsyncDuplexStreamingCall<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> FullDuplexCall(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
|
|
|
|
AsyncDuplexStreamingCall<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> FullDuplexCall(CallOptions options); |
|
|
|
AsyncDuplexStreamingCall<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> HalfDuplexCall(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
AsyncDuplexStreamingCall<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> HalfDuplexCall(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)); |
|
|
|
|
|
|
|
AsyncDuplexStreamingCall<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> HalfDuplexCall(CallOptions options); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// server-side interface |
|
|
|
// server-side interface |
|
|
@ -88,43 +102,83 @@ namespace grpc.testing { |
|
|
|
} |
|
|
|
} |
|
|
|
public global::grpc.testing.Empty EmptyCall(global::grpc.testing.Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
public global::grpc.testing.Empty EmptyCall(global::grpc.testing.Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var call = CreateCall(__ServiceName, __Method_EmptyCall, headers, deadline); |
|
|
|
var call = CreateCall(__Method_EmptyCall, new CallOptions(headers, deadline, cancellationToken)); |
|
|
|
return Calls.BlockingUnaryCall(call, request, cancellationToken); |
|
|
|
return Calls.BlockingUnaryCall(call, request); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public global::grpc.testing.Empty EmptyCall(global::grpc.testing.Empty request, CallOptions options) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var call = CreateCall(__Method_EmptyCall, options); |
|
|
|
|
|
|
|
return Calls.BlockingUnaryCall(call, request); |
|
|
|
} |
|
|
|
} |
|
|
|
public AsyncUnaryCall<global::grpc.testing.Empty> EmptyCallAsync(global::grpc.testing.Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
public AsyncUnaryCall<global::grpc.testing.Empty> EmptyCallAsync(global::grpc.testing.Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var call = CreateCall(__ServiceName, __Method_EmptyCall, headers, deadline); |
|
|
|
var call = CreateCall(__Method_EmptyCall, new CallOptions(headers, deadline, cancellationToken)); |
|
|
|
return Calls.AsyncUnaryCall(call, request, cancellationToken); |
|
|
|
return Calls.AsyncUnaryCall(call, request); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public AsyncUnaryCall<global::grpc.testing.Empty> EmptyCallAsync(global::grpc.testing.Empty request, CallOptions options) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var call = CreateCall(__Method_EmptyCall, options); |
|
|
|
|
|
|
|
return Calls.AsyncUnaryCall(call, request); |
|
|
|
} |
|
|
|
} |
|
|
|
public global::grpc.testing.SimpleResponse UnaryCall(global::grpc.testing.SimpleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
public global::grpc.testing.SimpleResponse UnaryCall(global::grpc.testing.SimpleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var call = CreateCall(__ServiceName, __Method_UnaryCall, headers, deadline); |
|
|
|
var call = CreateCall(__Method_UnaryCall, new CallOptions(headers, deadline, cancellationToken)); |
|
|
|
return Calls.BlockingUnaryCall(call, request, cancellationToken); |
|
|
|
return Calls.BlockingUnaryCall(call, request); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public global::grpc.testing.SimpleResponse UnaryCall(global::grpc.testing.SimpleRequest request, CallOptions options) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var call = CreateCall(__Method_UnaryCall, options); |
|
|
|
|
|
|
|
return Calls.BlockingUnaryCall(call, request); |
|
|
|
} |
|
|
|
} |
|
|
|
public AsyncUnaryCall<global::grpc.testing.SimpleResponse> UnaryCallAsync(global::grpc.testing.SimpleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
public AsyncUnaryCall<global::grpc.testing.SimpleResponse> UnaryCallAsync(global::grpc.testing.SimpleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var call = CreateCall(__ServiceName, __Method_UnaryCall, headers, deadline); |
|
|
|
var call = CreateCall(__Method_UnaryCall, new CallOptions(headers, deadline, cancellationToken)); |
|
|
|
return Calls.AsyncUnaryCall(call, request, cancellationToken); |
|
|
|
return Calls.AsyncUnaryCall(call, request); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public AsyncUnaryCall<global::grpc.testing.SimpleResponse> UnaryCallAsync(global::grpc.testing.SimpleRequest request, CallOptions options) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var call = CreateCall(__Method_UnaryCall, options); |
|
|
|
|
|
|
|
return Calls.AsyncUnaryCall(call, request); |
|
|
|
} |
|
|
|
} |
|
|
|
public AsyncServerStreamingCall<global::grpc.testing.StreamingOutputCallResponse> StreamingOutputCall(global::grpc.testing.StreamingOutputCallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
public AsyncServerStreamingCall<global::grpc.testing.StreamingOutputCallResponse> StreamingOutputCall(global::grpc.testing.StreamingOutputCallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var call = CreateCall(__ServiceName, __Method_StreamingOutputCall, headers, deadline); |
|
|
|
var call = CreateCall(__Method_StreamingOutputCall, new CallOptions(headers, deadline, cancellationToken)); |
|
|
|
return Calls.AsyncServerStreamingCall(call, request, cancellationToken); |
|
|
|
return Calls.AsyncServerStreamingCall(call, request); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public AsyncServerStreamingCall<global::grpc.testing.StreamingOutputCallResponse> StreamingOutputCall(global::grpc.testing.StreamingOutputCallRequest request, CallOptions options) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var call = CreateCall(__Method_StreamingOutputCall, options); |
|
|
|
|
|
|
|
return Calls.AsyncServerStreamingCall(call, request); |
|
|
|
} |
|
|
|
} |
|
|
|
public AsyncClientStreamingCall<global::grpc.testing.StreamingInputCallRequest, global::grpc.testing.StreamingInputCallResponse> StreamingInputCall(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
public AsyncClientStreamingCall<global::grpc.testing.StreamingInputCallRequest, global::grpc.testing.StreamingInputCallResponse> StreamingInputCall(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var call = CreateCall(__ServiceName, __Method_StreamingInputCall, headers, deadline); |
|
|
|
var call = CreateCall(__Method_StreamingInputCall, new CallOptions(headers, deadline, cancellationToken)); |
|
|
|
return Calls.AsyncClientStreamingCall(call, cancellationToken); |
|
|
|
return Calls.AsyncClientStreamingCall(call); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public AsyncClientStreamingCall<global::grpc.testing.StreamingInputCallRequest, global::grpc.testing.StreamingInputCallResponse> StreamingInputCall(CallOptions options) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var call = CreateCall(__Method_StreamingInputCall, options); |
|
|
|
|
|
|
|
return Calls.AsyncClientStreamingCall(call); |
|
|
|
} |
|
|
|
} |
|
|
|
public AsyncDuplexStreamingCall<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> FullDuplexCall(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
public AsyncDuplexStreamingCall<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> FullDuplexCall(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var call = CreateCall(__ServiceName, __Method_FullDuplexCall, headers, deadline); |
|
|
|
var call = CreateCall(__Method_FullDuplexCall, new CallOptions(headers, deadline, cancellationToken)); |
|
|
|
return Calls.AsyncDuplexStreamingCall(call, cancellationToken); |
|
|
|
return Calls.AsyncDuplexStreamingCall(call); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public AsyncDuplexStreamingCall<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> FullDuplexCall(CallOptions options) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var call = CreateCall(__Method_FullDuplexCall, options); |
|
|
|
|
|
|
|
return Calls.AsyncDuplexStreamingCall(call); |
|
|
|
} |
|
|
|
} |
|
|
|
public AsyncDuplexStreamingCall<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> HalfDuplexCall(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
public AsyncDuplexStreamingCall<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> HalfDuplexCall(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var call = CreateCall(__ServiceName, __Method_HalfDuplexCall, headers, deadline); |
|
|
|
var call = CreateCall(__Method_HalfDuplexCall, new CallOptions(headers, deadline, cancellationToken)); |
|
|
|
return Calls.AsyncDuplexStreamingCall(call, cancellationToken); |
|
|
|
return Calls.AsyncDuplexStreamingCall(call); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public AsyncDuplexStreamingCall<global::grpc.testing.StreamingOutputCallRequest, global::grpc.testing.StreamingOutputCallResponse> HalfDuplexCall(CallOptions options) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var call = CreateCall(__Method_HalfDuplexCall, options); |
|
|
|
|
|
|
|
return Calls.AsyncDuplexStreamingCall(call); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|