Beispiel #1
0
        public OBiletAPISessionService(IHttpClientFactory clientFactory, IOBiletResponseHandler oBiletResponseHandler)
        {
            _oBiletResponseHandler = oBiletResponseHandler;
            _httpClient            = clientFactory.CreateClient("SessionApi");

            //TODO: Token provider'dan alsın bu token'ı
            _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", "ZEdocGMybHpZV0p5WVc1a2JtVjNZbWx1");
        }