UserAgent.SendAsync Method
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.
Pipeline delegate to add a unique id header to an outgoing request
C#
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken token, Action cancel, Func<string,System.Threading.CancellationToken,Func<EventArgs>,System.Threading.Tasks.Task> signal, Func<System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken,Action,Func<string,System.Threading.CancellationToken,Func<EventArgs>,System.Threading.Tasks.Task>,System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>> next);
member this.SendAsync : System.Net.Http.HttpRequestMessage * System.Threading.CancellationToken * Action * Func<string, System.Threading.CancellationToken, Func<EventArgs>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpRequestMessage, System.Threading.CancellationToken, Action, Func<string, System.Threading.CancellationToken, Func<EventArgs>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>> -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function SendAsync (request As HttpRequestMessage, token As CancellationToken, cancel As Action, signal As Func(Of String, CancellationToken, Func(Of EventArgs), Task), next As Func(Of HttpRequestMessage, CancellationToken, Action, Func(Of String, CancellationToken, Func(Of EventArgs), Task), Task(Of HttpResponseMessage))) As Task(Of HttpResponseMessage)
- request
- HttpRequestMessage
The outgpoing request
- token
- CancellationToken
The cancellation token
- cancel
- Action
Additional cancellation action if the operation is cancelled
- next
- Func<HttpRequestMessage,CancellationToken,Action,Func<String,CancellationToken,Func<EventArgs>,Task>,Task<HttpResponseMessage>>
The next step in the pipeline
Amended pipeline for retrieving a response
منتج | الإصدارات |
---|---|
Azure - PowerShell Commands | 12 (LTS), Latest |