SendingHttpRequestMessageEventArgs¶
Namespace: ThinkGeo.Core
Provides data for the HTTP pipeline event raised before a request message is sent.
public class SendingHttpRequestMessageEventArgs : System.EventArgs
Inheritance object → EventArgs → SendingHttpRequestMessageEventArgs
Properties¶
HttpRequestMessage¶
Gets or sets the SendingHttpRequestMessageEventArgs.HttpRequestMessage that can be inspected or replaced before the request executes.
public HttpRequestMessage HttpRequestMessage { get; set; }
Property Value¶
Cancel¶
Gets or sets a value indicating whether the pending request should be canceled.
public bool Cancel { get; set; }
Property Value¶
Constructors¶
SendingHttpRequestMessageEventArgs()¶
Initializes a new instance of the SendingHttpRequestMessageEventArgs class.
public SendingHttpRequestMessageEventArgs()
SendingHttpRequestMessageEventArgs(HttpRequestMessage)¶
Initializes a new instance of the SendingHttpRequestMessageEventArgs class with the specified request message.
public SendingHttpRequestMessageEventArgs(HttpRequestMessage webRequest)
Parameters¶
webRequest HttpRequestMessage
The that is about to be sent.
SendingHttpRequestMessageEventArgs(HttpRequestMessage, bool)¶
Initializes a new instance of the SendingHttpRequestMessageEventArgs class with the specified request message and cancellation flag.
public SendingHttpRequestMessageEventArgs(HttpRequestMessage webRequest, bool cancel)
Parameters¶
webRequest HttpRequestMessage
The that is about to be sent.
cancel bool
A value indicating whether the request should be canceled.