C# Class BridgeStack.StackClientFactory

Creates concrete instances of the StackClient.
Show file Open project: bevacqua/BridgeStack

Public Methods

Method Description
Create ( string appKey, string accessToken ) : IAuthorizedStackClient

Instantiates an AuthorizedStackClient using an access token.

Create ( string appKey ) : IStackClient

Instantiates an StackClient.

StackClientFactory ( )

Creates concrete instances of the StackClient.

Private Methods

Method Description
InstancePlugins ( ) : StackClientPlugins

Creates a default instance of the plugin container for a StackClient.

Method Details

Create() public method

Instantiates an AuthorizedStackClient using an access token.
public Create ( string appKey, string accessToken ) : IAuthorizedStackClient
appKey string The application's key. Grants a higher request quota.
accessToken string The user's access token. Grants authentication and access to methods which require that the application be acting on behalf of a user in order to be invoked.
return IAuthorizedStackClient

Create() public method

Instantiates an StackClient.
public Create ( string appKey ) : IStackClient
appKey string The application's key. Grants a higher request quota.
return IStackClient

StackClientFactory() public method

Creates concrete instances of the StackClient.
public StackClientFactory ( )