Click or drag to resize
GoogleGrpcCredentialsToChannelCredentials Method
Converts a ITokenAccess (e.g. GoogleCredential) object into a gRPC ChannelCredentials object. Default SSL credentials are used.

Namespace: Grpc.Auth
Assembly: Grpc.Auth (in Grpc.Auth.dll) Version: 0.12.0.0
Syntax
public static ChannelCredentials ToChannelCredentials(
	this ITokenAccess googleCredential
)

Parameters

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

Return Value

Type: ChannelCredentials
>The ChannelCredentials 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