GoogleGrpcCredentialsToChannelCredentials Method |
Converts a
ITokenAccess (e.g.
GoogleCredential) object
into a gRPC
ChannelCredentials object.
Default SSL credentials are used.
Namespace: Grpc.AuthAssembly: Grpc.Auth (in Grpc.Auth.dll) Version: 0.12.0.0
Syntaxpublic static ChannelCredentials ToChannelCredentials(
this ITokenAccess googleCredential
)
<ExtensionAttribute>
Public Shared Function ToChannelCredentials (
googleCredential As ITokenAccess
) As ChannelCredentials
public:
[ExtensionAttribute]
static ChannelCredentials^ ToChannelCredentials(
ITokenAccess^ googleCredential
)
[<ExtensionAttribute>]
static member ToChannelCredentials :
googleCredential : ITokenAccess -> ChannelCredentials
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