Пример #1
0
        private async Task OnSendingRequestAsync(HttpRequestMessage request, Guid requestId)
        {
            var sendingRequest = this.SendingRequestRegistrationTokenTable.InvocationList;

            if (sendingRequest != null)
            {
                var eventArgs = new SendingRequestEventArgs(request);
                Trace.Verbose(requestId, "Raising SendingRequest event for URI: {0}", request.RequestUri);
                await this.RunThroughDispatcherAsync(() => sendingRequest(this, eventArgs));
            }
        }
Пример #2
0
 private async Task OnSendingRequestAsync(HttpRequestMessage request, Guid requestId)
 {
     var sendingRequest = this.SendingRequestRegistrationTokenTable.InvocationList;
     if (sendingRequest != null)
     {
         var eventArgs = new SendingRequestEventArgs(request);
         Trace.Verbose(requestId, "Raising SendingRequest event for URI: {0}", request.RequestUri);
         await this.RunThroughDispatcherAsync(() => sendingRequest(this, eventArgs));
     }
 }