DataServiceContext.BuildingRequest Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This event is fired before a request message object is built, giving the handler the opportunity to inspect, adjust and/or replace some request information before the message is built. This event should be used to modify the outgoing Url of the request or alter request headers. After the request is built, other modifications on the WebRequest object can be made in SendingRequest2.
public virtual event EventHandler<Microsoft.OData.Client.BuildingRequestEventArgs> BuildingRequest;
member this.BuildingRequest : EventHandler<Microsoft.OData.Client.BuildingRequestEventArgs>
Public Overridable Custom Event BuildingRequest As EventHandler(Of BuildingRequestEventArgs)
Event Type
Remarks
When calling BeginSaveChanges and not using SaveChangesOptions.BatchWithSingleChangeset and SaveChangesOptions.BatchWithIndependentOperations, this event may be raised from a different thread.