Struct ClientInterceptorContext<TRequest, TResponse>
Carries along the context associated with intercepted invocations on the client side.
Namespace: Grpc.Core.Interceptors
Assembly: Grpc.Core.Api.dll
Syntax
public struct ClientInterceptorContext<TRequest, TResponse>
where TRequest : class where TResponse : class
Type Parameters
Name | Description |
---|---|
TRequest | |
TResponse |
Constructors
ClientInterceptorContext(Method<TRequest, TResponse>, String, CallOptions)
Creates a new instance of ClientInterceptorContext<TRequest, TResponse> with the specified method, host, and call options.
Declaration
public ClientInterceptorContext(Method<TRequest, TResponse> method, string host, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
Method<TRequest, TResponse> | method | A Method<TRequest, TResponse> object representing the method to be invoked. |
System.String | host | The host to dispatch the current call to. |
CallOptions | options | A CallOptions instance containing the call options of the current call. |
Properties
Host
Gets the host that the currect invocation will be dispatched to.
Declaration
public string Host { get; }
Property Value
Type | Description |
---|---|
System.String |
Method
Gets the Method<TRequest, TResponse> instance representing the method to be invoked.
Declaration
public Method<TRequest, TResponse> Method { get; }
Property Value
Type | Description |
---|---|
Method<TRequest, TResponse> |
Options
Gets the CallOptions structure representing the call options associated with the current invocation.
Declaration
public CallOptions Options { get; }
Property Value
Type | Description |
---|---|
CallOptions |