InvocationExtensions.UseMiddleware Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
| Имя. | Описание |
|---|---|
| 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
Параметры
- builder
- CommandLineBuilder
- onInvoke
- Action<InvocationContext>
Возвращаемое значение
Применяется к
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
Параметры
- builder
- CommandLineBuilder
- middleware
- InvocationMiddleware