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;
        }
Ejemplo n.º 2
0
        protected GeolocatorBase(IHttpMessageHandlerFactory httpMessageHandlerFactory)
        {
            var httpMessageHander = httpMessageHandlerFactory.CreateHttpMessageHandler();

            _httpClient = new HttpClient(httpMessageHander);
        }
Ejemplo n.º 3
0
        protected RideSharingBase(IHttpMessageHandlerFactory httpMessageHandlerFactory)
        {
            var httpMessageHandler = httpMessageHandlerFactory.CreateHttpMessageHandler();

            _httpClient = new HttpClient(httpMessageHandler);
        }