Beispiel #1
0
        private async Task HandleForbiddenResponseAsync(HttpResponseMessage forbiddenResponse)
        {
            if (conventions.HandleForbiddenResponseAsync == null)
            {
                return;
            }

            var forbiddenResponseAsync = conventions.HandleForbiddenResponseAsync(forbiddenResponse, _credentials);

            if (forbiddenResponseAsync == null)
            {
                return;
            }

            await forbiddenResponseAsync.ConfigureAwait(false);
        }