InvocationExtensions.UseMiddleware Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
| Nazwisko | Opis |
|---|---|
| UseMiddleware(CommandLineBuilder, Action<InvocationContext>) | |
| UseMiddleware(CommandLineBuilder, InvocationMiddleware) |
UseMiddleware(CommandLineBuilder, Action<InvocationContext>)
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Builder::CommandLineBuilder ^ UseMiddleware(System::CommandLine::Builder::CommandLineBuilder ^ builder, Action<System::CommandLine::Invocation::InvocationContext ^> ^ onInvoke);
public static System.CommandLine.Builder.CommandLineBuilder UseMiddleware(this System.CommandLine.Builder.CommandLineBuilder builder, Action<System.CommandLine.Invocation.InvocationContext> onInvoke);
static member UseMiddleware : System.CommandLine.Builder.CommandLineBuilder * Action<System.CommandLine.Invocation.InvocationContext> -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseMiddleware (builder As CommandLineBuilder, onInvoke As Action(Of InvocationContext)) As CommandLineBuilder
Parametry
- builder
- CommandLineBuilder
- onInvoke
- Action<InvocationContext>
Zwraca
Dotyczy
UseMiddleware(CommandLineBuilder, InvocationMiddleware)
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Builder::CommandLineBuilder ^ UseMiddleware(System::CommandLine::Builder::CommandLineBuilder ^ builder, System::CommandLine::Invocation::InvocationMiddleware ^ middleware);
public static System.CommandLine.Builder.CommandLineBuilder UseMiddleware(this System.CommandLine.Builder.CommandLineBuilder builder, System.CommandLine.Invocation.InvocationMiddleware middleware);
static member UseMiddleware : System.CommandLine.Builder.CommandLineBuilder * System.CommandLine.Invocation.InvocationMiddleware -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseMiddleware (builder As CommandLineBuilder, middleware As InvocationMiddleware) As CommandLineBuilder
Parametry
- builder
- CommandLineBuilder
- middleware
- InvocationMiddleware