C# Class OAuth2.AuthorizationRoot

Mostrar archivo Open project: titarenko/OAuth2 Class Usage Examples

Public Methods

Method Description
AuthorizationRoot ( ) : System

Initializes a new instance of the AuthorizationRoot class.

Since this is boundary class, we decided to create parameterless constructor where default implementations of dependencies are used. So, despite we encourage you to employ IoC pattern, you are still able to just create instance of manager manually and then use it in your project.

AuthorizationRoot ( IConfigurationManager configurationManager, string configurationSectionName, IRequestFactory requestFactory ) : System

Initializes a new instance of the AuthorizationRoot class.

Protected Methods

Method Description
GetClientTypes ( ) : IEnumerable

Returns collection of client types to consider

Method Details

AuthorizationRoot() public method

Initializes a new instance of the AuthorizationRoot class.
Since this is boundary class, we decided to create parameterless constructor where default implementations of dependencies are used. So, despite we encourage you to employ IoC pattern, you are still able to just create instance of manager manually and then use it in your project.
public AuthorizationRoot ( ) : System
return System

AuthorizationRoot() public method

Initializes a new instance of the AuthorizationRoot class.
public AuthorizationRoot ( IConfigurationManager configurationManager, string configurationSectionName, IRequestFactory requestFactory ) : System
configurationManager IConfigurationManager The configuration manager.
configurationSectionName string Name of the configuration section.
requestFactory IRequestFactory The request factory.
return System

GetClientTypes() protected method

Returns collection of client types to consider
protected GetClientTypes ( ) : IEnumerable
return IEnumerable