C# Class OAuth2.Client.Impl.AsanaClient

Asana authentication client.
Inheritance: OAuth2Client
ファイルを表示 Open project: titarenko/OAuth2

Public Methods

Method Description
AsanaClient ( IRequestFactory factory, IClientConfiguration configuration ) : System.Collections.Generic

Initializes a new instance of the AsanaClient class.

Protected Methods

Method Description
BeforeGetUserInfo ( BeforeAfterRequestArgs args ) : void

Called just before issuing request to third-party service when everything is ready. Allows to add extra parameters to request or do any other needed preparations.

ParseUserInfo ( string content ) : OAuth2.Models.UserInfo

Should return parsed UserInfo from content received from third-party service.

Method Details

AsanaClient() public method

Initializes a new instance of the AsanaClient class.
public AsanaClient ( IRequestFactory factory, IClientConfiguration configuration ) : System.Collections.Generic
factory IRequestFactory The factory.
configuration IClientConfiguration The configuration.
return System.Collections.Generic

BeforeGetUserInfo() protected method

Called just before issuing request to third-party service when everything is ready. Allows to add extra parameters to request or do any other needed preparations.
protected BeforeGetUserInfo ( BeforeAfterRequestArgs args ) : void
args BeforeAfterRequestArgs
return void

ParseUserInfo() protected method

Should return parsed UserInfo from content received from third-party service.
protected ParseUserInfo ( string content ) : OAuth2.Models.UserInfo
content string The content which is received from third-party service.
return OAuth2.Models.UserInfo