public static class RequestExtensions
Extension methods for requests.
Namespace
Google.Apis.Auth.OAuth2Assembly
Google.Apis.Auth.dll
Methods
AddCredential<T>(T, ICredential)
public static T AddCredential<T>(this T request, ICredential credential) where T : ClientServiceRequest
Add a credential that is used for this request only. This will override a service-level credential (if there is one). Do not call more than once per request instance, as each call incrementally adds the provided credential. To perform identical requests but with distinct credentials, create a separate request instance for each credential.
Parameters | |
---|---|
Name | Description |
request |
T The request which requires a credential. Must not be null. |
credential |
ICredential The credential to use for this request only. Must not be null. |
Returns | |
---|---|
Type | Description |
T |
Type Parameter | |
---|---|
Name | Description |
T |
The request type. |