GoogleGrpcCredentialsToCallCredentials Method |
Converts a
ITokenAccess (e.g.
GoogleCredential) object
into a gRPC
CallCredentials object.
Namespace: Grpc.AuthAssembly: Grpc.Auth (in Grpc.Auth.dll) Version: 0.12.0.0
Syntaxpublic static CallCredentials ToCallCredentials(
this ITokenAccess credential
)
<ExtensionAttribute>
Public Shared Function ToCallCredentials (
credential As ITokenAccess
) As CallCredentials
public:
[ExtensionAttribute]
static CallCredentials^ ToCallCredentials(
ITokenAccess^ credential
)
[<ExtensionAttribute>]
static member ToCallCredentials :
credential : ITokenAccess -> CallCredentials
Parameters
- credential
- Type: ITokenAccess
The credential to use to obtain access tokens.
Return Value
Type:
CallCredentialsThe
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