Skip to content

How to view queries being issued? #1983

Answered by johnkwaters
johnkwaters asked this question in Q&A
Discussion options

You must be logged in to vote

Oh - I think it means to use the same handler that you use for authorization, its just the HttpClienHandler

    public class AuthorizationMessageHandler : HttpClientHandler
    {
        public AuthorizationMessageHandler(AuthenticationHeaderValue authorization)
        {
            Authorization = authorization;
        }
        public AuthenticationHeaderValue Authorization { get; set; }
        protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
        {
            if (Authorization != null)
                request.Headers.Authorization = Authorization;
            var res = await base.SendAsync(request, canc…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by johnkwaters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant