Dela via


Module.OnNewRequest Property

Definition

The delegate to call before each new request (supporting a commmon module).

public Action<System.Management.Automation.InvocationInfo,string,string,Action<Func<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>>>,Action<Func<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>>>> OnNewRequest { get; set; }
member this.OnNewRequest : Action<System.Management.Automation.InvocationInfo, string, string, Action<Func<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>>>, Action<Func<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>>>> with get, set
Public Property OnNewRequest As Action(Of InvocationInfo, String, String, Action(Of Func(Of HttpRequestMessage, CancellationToken, Action, Func(Of String, CancellationToken, Func(Of EventArgs), Task), Func(Of HttpRequestMessage, CancellationToken, Action, Func(Of String, CancellationToken, Func(Of EventArgs), Task), Task(Of HttpResponseMessage)), Task(Of HttpResponseMessage))), Action(Of Func(Of HttpRequestMessage, CancellationToken, Action, Func(Of String, CancellationToken, Func(Of EventArgs), Task), Func(Of HttpRequestMessage, CancellationToken, Action, Func(Of String, CancellationToken, Func(Of EventArgs), Task), Task(Of HttpResponseMessage)), Task(Of HttpResponseMessage))))

Property Value

Applies to