protected GetARideServiceBaseGateway(IHttpMessageHandlerFactory httpMessageHandlerFactory, GatewayConfiguration gatewayConfiguration)
        {
            var httpMessageHandler = httpMessageHandlerFactory.CreateHttpMessageHandler();

            HttpClient        = new HttpClient(httpMessageHandler);
            AuthenticationUrl = gatewayConfiguration.AuthenticationUrl;
            ApiUrl            = gatewayConfiguration.ApiUrl;
            ClientId          = gatewayConfiguration.ClientID;
            ClientSecret      = gatewayConfiguration.ClientSecret;
        }
예제 #2
0
        protected GeolocatorBase(IHttpMessageHandlerFactory httpMessageHandlerFactory)
        {
            var httpMessageHander = httpMessageHandlerFactory.CreateHttpMessageHandler();

            _httpClient = new HttpClient(httpMessageHander);
        }
예제 #3
0
        protected RideSharingBase(IHttpMessageHandlerFactory httpMessageHandlerFactory)
        {
            var httpMessageHandler = httpMessageHandlerFactory.CreateHttpMessageHandler();

            _httpClient = new HttpClient(httpMessageHandler);
        }