AltitudeAngelWings.ApiClient.Client.AltitudeAngelClient.AltitudeAngelClient C# (CSharp) Метод

AltitudeAngelClient() публичный Метод

Constructor.
public AltitudeAngelClient ( string authUrl, string apiUrl, DotNetOpenAuth.OAuth2.AuthorizationState existingState, AltitudeAngelHttpHandlerFactory handlerFactory ) : System
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 AltitudeAngelHttpHandlerFactory 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);
        }