Share via


DataServiceContext.SendingRequest2 Event

Definition

This event is fired before a request is sent to the server, giving the handler the opportunity to inspect, adjust and/or replace the WebRequest object used to perform the request.

public virtual event EventHandler<Microsoft.OData.Client.SendingRequest2EventArgs> SendingRequest2;
member this.SendingRequest2 : EventHandler<Microsoft.OData.Client.SendingRequest2EventArgs> 
Public Overridable Event SendingRequest2 As EventHandler(Of SendingRequest2EventArgs) 

Event Type

Remarks

When calling BeginSaveChanges and not using SaveChangesOptions.BatchWithSingleChangeset and SaveChangesOptions.BatchWithIndependentOperations, this event may be raised from a different thread.

Applies to