C# Class RestSharp.OAuth2Authenticator

Base class for OAuth 2 Authenticators.
Since there are many ways to authenticate in OAuth2, this is used as a base class to differentiate between other authenticators. Any other OAuth2 authenticators must derive from this abstract class.
Inheritance: IAuthenticator
ファイルを表示 Open project: nicwise/RestSharp Class Usage Examples

Public Methods

Method Description
Authenticate ( IRestClient client, IRestRequest request ) : void
OAuth2Authenticator ( string accessToken ) : System

Initializes a new instance of the OAuth2Authenticator class.

Method Details

Authenticate() public abstract method

public abstract Authenticate ( IRestClient client, IRestRequest request ) : void
client IRestClient
request IRestRequest
return void

OAuth2Authenticator() public method

Initializes a new instance of the OAuth2Authenticator class.
public OAuth2Authenticator ( string accessToken ) : System
accessToken string /// The access token. ///
return System