Ejemplo n.º 1
0
            ///  <inheritdoc />
            public override Task <IMessage <EchoMessage> > Echo(IMessage <EchoMessage> request, ServerCallContext context)
            {
                var args  = request.Payload.Deserialize();
                var reply = new EchoBond.EchoMessage {
                    Text = args.Text,
                };

                return(Task.FromResult(Bond.Grpc.Message.From(reply)));
            }
Ejemplo n.º 2
0
            public virtual global::Grpc.Core.AsyncUnaryCall <global::Bond.Grpc.IMessage <EchoMessage> > EchoAsync(EchoMessage request, global::Grpc.Core.Metadata headers = null, global::System.DateTime?deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
            {
                var message = global::Bond.Grpc.Message.From(request);

                return(EchoAsync(message, new global::Grpc.Core.CallOptions(headers, deadline, cancellationToken)));
            }