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)); } }
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)); } }