/// <summary> ///注册 ///一个 服务器端流式 RPC , 客户端发送请求到服务器,拿到一个流去读取返回的消息序列。 客户端读取返回的流, ///直到里面没有任何消息。从例子中可以看出,通过在 响应 类型前插入 stream 关键字,可以指定一个服务器端的流方法 /// </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 Register2(global::GrpcTest.Service.Models.RegisterRq request, grpc::IServerStreamWriter <global::Grpc.Service.Model.ExecuteResult.PbMsgRet> responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); }
/// <summary> ///注册 ///一个 服务器端流式 RPC , 客户端发送请求到服务器,拿到一个流去读取返回的消息序列。 客户端读取返回的流, ///直到里面没有任何消息。从例子中可以看出,通过在 响应 类型前插入 stream 关键字,可以指定一个服务器端的流方法 /// </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.Service.Model.ExecuteResult.PbMsgRet> Register2(global::GrpcTest.Service.Models.RegisterRq request, grpc::Metadata headers = null, global::System.DateTime?deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return(Register2(request, new grpc::CallOptions(headers, deadline, cancellationToken))); }
/// <summary> ///注册 ///一个 服务器端流式 RPC , 客户端发送请求到服务器,拿到一个流去读取返回的消息序列。 客户端读取返回的流, ///直到里面没有任何消息。从例子中可以看出,通过在 响应 类型前插入 stream 关键字,可以指定一个服务器端的流方法 /// </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.Service.Model.ExecuteResult.PbMsgRet> Register2(global::GrpcTest.Service.Models.RegisterRq request, grpc::CallOptions options) { return(CallInvoker.AsyncServerStreamingCall(__Method_Register2, null, options, request)); }
/// <summary> ///注册 ///一个 简单 RPC , 客户端使用存根发送请求到服务器并等待响应返回,就像平常的函数调用一样 /// </summary> /// <param name="request">The request to send to the server.</param> /// <param name="options">The options for the call.</param> /// <returns>The response received from the server.</returns> public virtual global::Grpc.Service.Model.ExecuteResult.PbMsgRet Register1(global::GrpcTest.Service.Models.RegisterRq request, grpc::CallOptions options) { return(CallInvoker.BlockingUnaryCall(__Method_Register1, null, options, request)); }