Beispiel #1
0
 /// <summary>
 ///  One request followed by one response.
 /// </summary>
 public virtual AsyncUnaryCall <global::Grpc.Testing.SimpleResponse> UnaryCallAsync(global::Grpc.Testing.SimpleRequest request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(UnaryCallAsync(request, new CallOptions(headers, deadline, cancellationToken)));
 }
Beispiel #2
0
 /// <summary>
 ///  One request followed by one response.
 /// </summary>
 public virtual AsyncUnaryCall <global::Grpc.Testing.SimpleResponse> UnaryCallAsync(global::Grpc.Testing.SimpleRequest request, CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_UnaryCall, null, options, request));
 }
Beispiel #3
0
 /// <summary>
 ///  One request followed by one response.
 /// </summary>
 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, ""));
 }
Beispiel #4
0
 /// <summary>
 ///  One request followed by one response.
 /// </summary>
 public virtual global::Grpc.Testing.SimpleResponse UnaryCall(global::Grpc.Testing.SimpleRequest request, CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_UnaryCall, null, options, request));
 }
Beispiel #5
0
            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(__Method_UnaryCall, new CallOptions(headers, deadline, cancellationToken));

                return(Calls.AsyncUnaryCall(call, request));
            }
Beispiel #6
0
            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));
            }
Beispiel #7
0
            public global::Grpc.Testing.SimpleResponse UnaryCall(global::Grpc.Testing.SimpleRequest request, CallOptions options)
            {
                var call = CreateCall(__Method_UnaryCall, options);

                return(Calls.BlockingUnaryCall(call, request));
            }
Beispiel #8
0
 /// <summary>
 /// Single-sided unbounded streaming from server to client
 /// The server repeatedly returns the client payload as-is
 /// </summary>
 /// <param name="request">The request to send to the server.</param>
 /// <param name="options">The options for the call.</param>
 /// <returns>The call object.</returns>
 public virtual grpc::AsyncServerStreamingCall <global::Grpc.Testing.SimpleResponse> StreamingFromServer(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncServerStreamingCall(__Method_StreamingFromServer, null, options, request));
 }
Beispiel #9
0
 /// <summary>
 /// Single-sided unbounded streaming from server to client
 /// The server repeatedly returns the client payload as-is
 /// </summary>
 /// <param name="request">The request to send to the server.</param>
 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
 /// <param name="cancellationToken">An optional token for canceling the call.</param>
 /// <returns>The call object.</returns>
 public virtual grpc::AsyncServerStreamingCall <global::Grpc.Testing.SimpleResponse> StreamingFromServer(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(StreamingFromServer(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
Beispiel #10
0
 /// <summary>
 /// Single-sided unbounded streaming from server to client
 /// The server repeatedly returns the client payload as-is
 /// </summary>
 /// <param name="request">The request received from the client.</param>
 /// <param name="responseStream">Used for sending responses back to the client.</param>
 /// <param name="context">The context of the server-side call handler being invoked.</param>
 /// <returns>A task indicating completion of the handler.</returns>
 public virtual global::System.Threading.Tasks.Task StreamingFromServer(global::Grpc.Testing.SimpleRequest request, grpc::IServerStreamWriter <global::Grpc.Testing.SimpleResponse> responseStream, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }
Beispiel #11
0
 /// <summary>
 /// One request followed by one response.
 /// The server returns the client payload as-is.
 /// </summary>
 /// <param name="request">The request to send to the server.</param>
 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
 /// <param name="cancellationToken">An optional token for canceling the call.</param>
 /// <returns>The call object.</returns>
 public virtual grpc::AsyncUnaryCall <global::Grpc.Testing.SimpleResponse> UnaryCallAsync(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, global::System.DateTime?deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
 {
     return(UnaryCallAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }