Class AuthInterceptorContext (2.63.0)

public class AuthInterceptorContext

Context for an RPC being intercepted by AsyncAuthInterceptor.

Inheritance

object > AuthInterceptorContext

Namespace

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 string
methodName string

AuthInterceptorContext(string, string, CancellationToken)

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

Initializes a new instance of AuthInterceptorContext.

Parameters
Name Description
serviceUrl string
methodName string
cancellationToken CancellationToken

Properties

CancellationToken

public CancellationToken CancellationToken { get; }

The cancellation token of the RPC being called.

Property Value
Type Description
CancellationToken

MethodName

public string MethodName { get; }

The method name of the RPC being called.

Property Value
Type Description
string

ServiceUrl

public string ServiceUrl { get; }

The fully qualified service URL for the RPC being called.

Property Value
Type Description
string