Class ClientInterceptorAdapter
- Namespace
- Apache.Arrow.Flight.Middleware.Interceptors
- Assembly
- Apache.Arrow.Flight.dll
public sealed class ClientInterceptorAdapter : Interceptor
- Inheritance
-
ClientInterceptorAdapter
- Inherited Members
Constructors
ClientInterceptorAdapter(IEnumerable<IFlightClientMiddlewareFactory>)
public ClientInterceptorAdapter(IEnumerable<IFlightClientMiddlewareFactory> factories)
Parameters
factoriesIEnumerable<IFlightClientMiddlewareFactory>
Methods
AsyncServerStreamingCall<TRequest, TResponse>(TRequest, ClientInterceptorContext<TRequest, TResponse>, AsyncServerStreamingCallContinuation<TRequest, TResponse>)
Intercepts an asynchronous invocation of a streaming remote call.
public override AsyncServerStreamingCall<TResponse> AsyncServerStreamingCall<TRequest, TResponse>(TRequest request, ClientInterceptorContext<TRequest, TResponse> context, Interceptor.AsyncServerStreamingCallContinuation<TRequest, TResponse> continuation) where TRequest : class where TResponse : class
Parameters
requestTRequestThe request message of the invocation.
contextClientInterceptorContext<TRequest, TResponse>The ClientInterceptorContext<TRequest, TResponse> associated with the current invocation.
continuationInterceptor.AsyncServerStreamingCallContinuation<TRequest, TResponse>The callback that continues the invocation process. This can be invoked zero or more times by the interceptor. The interceptor can invoke the continuation passing the given request value and context arguments, or substitute them as it sees fit.
Returns
- AsyncServerStreamingCall<TResponse>
An instance of AsyncServerStreamingCall<TResponse> representing an asynchronous server-streaming invocation. The interceptor can simply return the return value of the continuation delegate passed to it intact, or construct its own substitute as it sees fit.
Type Parameters
TRequestTResponse
AsyncUnaryCall<TRequest, TResponse>(TRequest, ClientInterceptorContext<TRequest, TResponse>, AsyncUnaryCallContinuation<TRequest, TResponse>)
Intercepts an asynchronous invocation of a simple remote call.
public override AsyncUnaryCall<TResponse> AsyncUnaryCall<TRequest, TResponse>(TRequest request, ClientInterceptorContext<TRequest, TResponse> context, Interceptor.AsyncUnaryCallContinuation<TRequest, TResponse> continuation) where TRequest : class where TResponse : class
Parameters
requestTRequestThe request message of the invocation.
contextClientInterceptorContext<TRequest, TResponse>The ClientInterceptorContext<TRequest, TResponse> associated with the current invocation.
continuationInterceptor.AsyncUnaryCallContinuation<TRequest, TResponse>The callback that continues the invocation process. This can be invoked zero or more times by the interceptor. The interceptor can invoke the continuation passing the given request value and context arguments, or substitute them as it sees fit.
Returns
- AsyncUnaryCall<TResponse>
An instance of AsyncUnaryCall<TResponse> representing an asynchronous unary invocation. The interceptor can simply return the return value of the continuation delegate passed to it intact, or construct its own substitute as it sees fit.
Type Parameters
TRequestTResponse