Click or drag to resize
GoogleGrpcCredentialsToCallCredentials Method
Converts a ITokenAccess (e.g. GoogleCredential) object into a gRPC CallCredentials object.

Namespace: Grpc.Auth
Assembly: Grpc.Auth (in Grpc.Auth.dll) Version: 0.12.0.0
Syntax
public static CallCredentials ToCallCredentials(
	this ITokenAccess credential
)

Parameters

credential
Type: ITokenAccess
The credential to use to obtain access tokens.

Return Value

Type: CallCredentials
The CallCredentials instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ITokenAccess. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also