# Struct ClientInterceptorContext&lt;TRequest, TResponse&gt; (2.66.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.66.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Interceptors.ClientInterceptorContext-2)
- [2.63.0](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/2.63.0/Grpc.Core.Interceptors.ClientInterceptorContext-2)
- [2.48.0](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/2.48.0/Grpc.Core.Interceptors.ClientInterceptorContext-2)

    public struct ClientInterceptorContext<TRequest, TResponse> where TRequest : class where TResponse : class

Carries along the context associated with intercepted invocations on the client side.

## Inherited Members

[ValueType.Equals(object)](https://learn.microsoft.com/dotnet/api/system.valuetype.equals) [ValueType.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.valuetype.gethashcode) [ValueType.ToString()](https://learn.microsoft.com/dotnet/api/system.valuetype.tostring) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)

## Namespace

[Grpc.Core.Interceptors](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Interceptors)

## Assembly

Grpc.Core.Api.dll

| ## Type Parameters ||
|---|---|
| **Name** | **Description** |
| `TRequest` |   |
| `TResponse` |   |

## Constructors

### ClientInterceptorContext(Method\<TRequest, TResponse\>, string?, CallOptions)

    public ClientInterceptorContext(Method<TRequest, TResponse> method, string? host, CallOptions options)

Creates a new instance of [ClientInterceptorContext\<TRequest, TResponse\>](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Interceptors.ClientInterceptorContext-2)
with the specified method, host, and call options.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `method` | `https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Method-2` A [Method\<TRequest, TResponse\>](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Method-2) object representing the method to be invoked. |
| `host` | `https://learn.microsoft.com/dotnet/api/system.string` The host to dispatch the current call to. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions` A [CallOptions](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions) instance containing the call options of the current call. |

## Properties

### Host

    public readonly string? Host { get; }

Gets the host that the currect invocation will be dispatched to.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Method

    public readonly Method<TRequest, TResponse> Method { get; }

Gets the [Method\<TRequest, TResponse\>](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Method-2) instance
representing the method to be invoked.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Method-2` |   |

### Options

    public readonly CallOptions Options { get; }

Gets the [CallOptions](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions) structure representing the
call options associated with the current invocation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions` |   |