# Class AuthInterceptorContext (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.AuthInterceptorContext)
- [2.63.0](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/2.63.0/Grpc.Core.AuthInterceptorContext)
- [2.48.0](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/2.48.0/Grpc.Core.AuthInterceptorContext)

    public class AuthInterceptorContext

Context for an RPC being intercepted by [AsyncAuthInterceptor](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncAuthInterceptor).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AuthInterceptorContext

## Inherited Members

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

## Namespace

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

## Assembly

Grpc.Core.Api.dll

## Constructors

### AuthInterceptorContext(string, string)

    public AuthInterceptorContext(string serviceUrl, string methodName)

Initializes a new instance of `AuthInterceptorContext`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `serviceUrl` | `https://learn.microsoft.com/dotnet/api/system.string` |
| `methodName` | `https://learn.microsoft.com/dotnet/api/system.string` |

### AuthInterceptorContext(string, string, CancellationToken)

    public AuthInterceptorContext(string serviceUrl, string methodName, CancellationToken cancellationToken)

Initializes a new instance of `AuthInterceptorContext`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `serviceUrl` | `https://learn.microsoft.com/dotnet/api/system.string` |
| `methodName` | `https://learn.microsoft.com/dotnet/api/system.string` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` |

## Properties

### CancellationToken

    public CancellationToken CancellationToken { get; }

The cancellation token of the RPC being called.

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

### MethodName

    public string MethodName { get; }

The method name of the RPC being called.

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

### ServiceUrl

    public string ServiceUrl { get; }

The fully qualified service URL for the RPC being called.

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