CallsBlockingUnaryCallTRequest, TResponse Method |
Invokes a simple remote call in a blocking fashion.
Namespace: Grpc.CoreAssembly: Grpc.Core (in Grpc.Core.dll) Version: 0.7.0.0
Syntaxpublic static TResponse BlockingUnaryCall<TRequest, TResponse>(
CallInvocationDetails<TRequest, TResponse> call,
TRequest req
)
where TRequest : class
where TResponse : class
Public Shared Function BlockingUnaryCall(Of TRequest As Class, TResponse As Class) (
call As CallInvocationDetails(Of TRequest, TResponse),
req As TRequest
) As TResponse
public:
generic<typename TRequest, typename TResponse>
where TRequest : ref class
where TResponse : ref class
static TResponse BlockingUnaryCall(
CallInvocationDetails<TRequest, TResponse> call,
TRequest req
)
static member BlockingUnaryCall :
call : CallInvocationDetails<'TRequest, 'TResponse> *
req : 'TRequest -> 'TResponse when 'TRequest : not struct when 'TResponse : not struct
Parameters
- call
- Type: Grpc.CoreCallInvocationDetailsTRequest, TResponse
The call defintion. - req
- Type: TRequest
Request message.
Type Parameters
- TRequest
- Type of request message.
- TResponse
- The of response message.
Return Value
Type:
TResponseThe response.
See Also