CallsAsyncServerStreamingCallTRequest, TResponse Method |
Invokes a server streaming call asynchronously.
In server streaming scenario, client sends on request and server responds with a stream of responses.
Namespace: Grpc.CoreAssembly: Grpc.Core (in Grpc.Core.dll) Version: 0.7.0.0
Syntaxpublic static AsyncServerStreamingCall<TResponse> AsyncServerStreamingCall<TRequest, TResponse>(
CallInvocationDetails<TRequest, TResponse> call,
TRequest req
)
where TRequest : class
where TResponse : class
Public Shared Function AsyncServerStreamingCall(Of TRequest As Class, TResponse As Class) (
call As CallInvocationDetails(Of TRequest, TResponse),
req As TRequest
) As AsyncServerStreamingCall(Of TResponse)
public:
generic<typename TRequest, typename TResponse>
where TRequest : ref class
where TResponse : ref class
static AsyncServerStreamingCall<TResponse>^ AsyncServerStreamingCall(
CallInvocationDetails<TRequest, TResponse> call,
TRequest req
)
static member AsyncServerStreamingCall :
call : CallInvocationDetails<'TRequest, 'TResponse> *
req : 'TRequest -> AsyncServerStreamingCall<'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 messages.
Return Value
Type:
AsyncServerStreamingCallTResponseA call object providing access to the asynchronous response stream.
See Also