Exemplo n.º 1
0
            public ClientStreamingAsyncResult <StreamingInputCallRequest, StreamingInputCallResponse> StreamingInputCall(CancellationToken token = default(CancellationToken))
            {
                var call = new Grpc.Core.Call <StreamingInputCallRequest, StreamingInputCallResponse>(streamingInputCallMethod, channel);

                return(Calls.AsyncClientStreamingCall(call, token));
            }
Exemplo n.º 2
0
            public Task <SimpleResponse> UnaryCallAsync(SimpleRequest request, CancellationToken token = default(CancellationToken))
            {
                var call = new Grpc.Core.Call <SimpleRequest, SimpleResponse>(unaryCallMethod, channel);

                return(Calls.AsyncUnaryCall(call, request, token));
            }
Exemplo n.º 3
0
            public void StreamingOutputCall(StreamingOutputCallRequest request, IObserver <StreamingOutputCallResponse> responseObserver, CancellationToken token = default(CancellationToken))
            {
                var call = new Grpc.Core.Call <StreamingOutputCallRequest, StreamingOutputCallResponse>(streamingOutputCallMethod, channel);

                Calls.AsyncServerStreamingCall(call, request, responseObserver, token);
            }
Exemplo n.º 4
0
 public SimpleResponse UnaryCall(SimpleRequest request, CancellationToken token = default(CancellationToken))
 {
     var call = new Grpc.Core.Call<SimpleRequest, SimpleResponse>(unaryCallMethod, channel);
     return Calls.BlockingUnaryCall(call, request, token);
 }
Exemplo n.º 5
0
 public Task<DivReply> DivAsync(DivArgs request, CancellationToken token = default(CancellationToken))
 {
     var call = new Grpc.Core.Call<DivArgs, DivReply>(divMethod, channel);
     return Calls.AsyncUnaryCall(call, request, token);
 }
Exemplo n.º 6
0
 public Task<Empty> EmptyCallAsync(Empty request, CancellationToken token = default(CancellationToken))
 {
     var call = new Grpc.Core.Call<Empty, Empty>(emptyCallMethod, channel);
     return Calls.AsyncUnaryCall(call, request, token);
 }
Exemplo n.º 7
0
 public ClientStreamingAsyncResult<StreamingInputCallRequest, StreamingInputCallResponse> StreamingInputCall(CancellationToken token = default(CancellationToken))
 {
     var call = new Grpc.Core.Call<StreamingInputCallRequest, StreamingInputCallResponse>(streamingInputCallMethod, channel);
     return Calls.AsyncClientStreamingCall(call, token);
 }
Exemplo n.º 8
0
            public ClientStreamingAsyncResult <Num, Num> Sum(CancellationToken token = default(CancellationToken))
            {
                var call = new Grpc.Core.Call <Num, Num>(sumMethod, channel);

                return(Calls.AsyncClientStreamingCall(call, token));
            }
Exemplo n.º 9
0
            public IObserver <DivArgs> DivMany(IObserver <DivReply> responseObserver, CancellationToken token = default(CancellationToken))
            {
                var call = new Grpc.Core.Call <DivArgs, DivReply>(divManyMethod, channel);

                return(Calls.DuplexStreamingCall(call, responseObserver, token));
            }
Exemplo n.º 10
0
            public Task <DivReply> DivAsync(DivArgs request, CancellationToken token = default(CancellationToken))
            {
                var call = new Grpc.Core.Call <DivArgs, DivReply>(divMethod, channel);

                return(Calls.AsyncUnaryCall(call, request, token));
            }
Exemplo n.º 11
0
            public void Fib(FibArgs request, IObserver <Num> responseObserver, CancellationToken token = default(CancellationToken))
            {
                var call = new Grpc.Core.Call <FibArgs, Num>(fibMethod, channel);

                Calls.AsyncServerStreamingCall(call, request, responseObserver, token);
            }
Exemplo n.º 12
0
 public ClientStreamingAsyncResult<Num, Num> Sum(CancellationToken token = default(CancellationToken))
 {
     var call = new Grpc.Core.Call<Num, Num>(sumMethod, channel);
     return Calls.AsyncClientStreamingCall(call, token);
 }
Exemplo n.º 13
0
 public void Fib(FibArgs request, IObserver<Num> responseObserver, CancellationToken token = default(CancellationToken))
 {
     var call = new Grpc.Core.Call<FibArgs, Num>(fibMethod, channel);
     Calls.AsyncServerStreamingCall(call, request, responseObserver, token);
 }
Exemplo n.º 14
0
 public IObserver<DivArgs> DivMany(IObserver<DivReply> responseObserver, CancellationToken token = default(CancellationToken))
 {
     var call = new Grpc.Core.Call<DivArgs, DivReply>(divManyMethod, channel);
     return Calls.DuplexStreamingCall(call, responseObserver, token);
 }
Exemplo n.º 15
0
            public IObserver <StreamingOutputCallRequest> HalfDuplexCall(IObserver <StreamingOutputCallResponse> responseObserver, CancellationToken token = default(CancellationToken))
            {
                var call = new Grpc.Core.Call <StreamingOutputCallRequest, StreamingOutputCallResponse>(halfDuplexCallMethod, channel);

                return(Calls.DuplexStreamingCall(call, responseObserver, token));
            }
Exemplo n.º 16
0
            public DivReply Div(DivArgs request, CancellationToken token = default(CancellationToken))
            {
                var call = new Grpc.Core.Call <DivArgs, DivReply>(divMethod, channel);

                return(Calls.BlockingUnaryCall(call, request, token));
            }
Exemplo n.º 17
0
 public Empty EmptyCall(Empty request, CancellationToken token = default(CancellationToken))
 {
     var call = new Grpc.Core.Call<Empty, Empty>(emptyCallMethod, channel);
     return Calls.BlockingUnaryCall(call, request, token);
 }
Exemplo n.º 18
0
            public Empty EmptyCall(Empty request, CancellationToken token = default(CancellationToken))
            {
                var call = new Grpc.Core.Call <Empty, Empty>(emptyCallMethod, channel);

                return(Calls.BlockingUnaryCall(call, request, token));
            }
Exemplo n.º 19
0
 public IObserver<StreamingOutputCallRequest> HalfDuplexCall(IObserver<StreamingOutputCallResponse> responseObserver, CancellationToken token = default(CancellationToken))
 {
     var call = new Grpc.Core.Call<StreamingOutputCallRequest, StreamingOutputCallResponse>(halfDuplexCallMethod, channel);
     return Calls.DuplexStreamingCall(call, responseObserver, token);
 }
Exemplo n.º 20
0
            public Task <Empty> EmptyCallAsync(Empty request, CancellationToken token = default(CancellationToken))
            {
                var call = new Grpc.Core.Call <Empty, Empty>(emptyCallMethod, channel);

                return(Calls.AsyncUnaryCall(call, request, token));
            }
Exemplo n.º 21
0
 public void StreamingOutputCall(StreamingOutputCallRequest request, IObserver<StreamingOutputCallResponse> responseObserver, CancellationToken token = default(CancellationToken))
 {
     var call = new Grpc.Core.Call<StreamingOutputCallRequest, StreamingOutputCallResponse>(streamingOutputCallMethod, channel);
     Calls.AsyncServerStreamingCall(call, request, responseObserver, token);
 }
Exemplo n.º 22
0
            public SimpleResponse UnaryCall(SimpleRequest request, CancellationToken token = default(CancellationToken))
            {
                var call = new Grpc.Core.Call <SimpleRequest, SimpleResponse>(unaryCallMethod, channel);

                return(Calls.BlockingUnaryCall(call, request, token));
            }
Exemplo n.º 23
0
 public Task<SimpleResponse> UnaryCallAsync(SimpleRequest request, CancellationToken token = default(CancellationToken))
 {
     var call = new Grpc.Core.Call<SimpleRequest, SimpleResponse>(unaryCallMethod, channel);
     return Calls.AsyncUnaryCall(call, request, token);
 }
Exemplo n.º 24
0
 public DivReply Div(DivArgs request, CancellationToken token = default(CancellationToken))
 {
     var call = new Grpc.Core.Call<DivArgs, DivReply>(divMethod, channel);
     return Calls.BlockingUnaryCall(call, request, token);
 }