CallsAsyncDuplexStreamingCallTRequest, TResponse Method |
Invokes a duplex streaming call asynchronously.
In duplex streaming scenario, client sends a stream of requests and server responds with a stream of responses.
The response stream is completely independent and both side can be sending messages at the same time.
Namespace: Grpc.CoreAssembly: Grpc.Core (in Grpc.Core.dll) Version: 0.7.0.0
Syntaxpublic static AsyncDuplexStreamingCall<TRequest, TResponse> AsyncDuplexStreamingCall<TRequest, TResponse>(
CallInvocationDetails<TRequest, TResponse> call
)
where TRequest : class
where TResponse : class
Public Shared Function AsyncDuplexStreamingCall(Of TRequest As Class, TResponse As Class) (
call As CallInvocationDetails(Of TRequest, TResponse)
) As AsyncDuplexStreamingCall(Of TRequest, TResponse)
public:
generic<typename TRequest, typename TResponse>
where TRequest : ref class
where TResponse : ref class
static AsyncDuplexStreamingCall<TRequest, TResponse>^ AsyncDuplexStreamingCall(
CallInvocationDetails<TRequest, TResponse> call
)
static member AsyncDuplexStreamingCall :
call : CallInvocationDetails<'TRequest, 'TResponse> -> AsyncDuplexStreamingCall<'TRequest, 'TResponse> when 'TRequest : not struct when 'TResponse : not struct
Parameters
- call
- Type: Grpc.CoreCallInvocationDetailsTRequest, TResponse
The call definition.
Type Parameters
- TRequest
- Type of request messages.
- TResponse
- Type of reponse messages.
Return Value
Type:
AsyncDuplexStreamingCallTRequest,
TResponseA call object providing access to the asynchronous request and response streams.
See Also