public AltitudeAngelClient ( string authUrl, string apiUrl, DotNetOpenAuth.OAuth2.AuthorizationState existingState, |
||
authUrl | string | The base auth URL (scheme and host) for the service. |
apiUrl | string | The base API URL (scheme and host) for the service. |
existingState | DotNetOpenAuth.OAuth2.AuthorizationState | Any existing state from a previous session. |
handlerFactory | A delegate to create the http handler factory. | |
리턴 | System |
public AltitudeAngelClient(
string authUrl,
string apiUrl,
AuthorizationState existingState,
AltitudeAngelHttpHandlerFactory.Create handlerFactory
)
{
_authUrl = authUrl;
_apiUrl = apiUrl;
_handlerFactory = handlerFactory(authUrl, existingState);
_client = new FlurlClient
{
Settings =
{
HttpClientFactory = _handlerFactory
},
AutoDispose = false
};
_disposer.Add(_client);
}