InvocationExtensions.UseMiddleware Method
Definition
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.
Overloads
| Name | Description |
|---|---|
| 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
Parameters
- builder
- CommandLineBuilder
- onInvoke
- Action<InvocationContext>
Returns
Applies to
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
Parameters
- builder
- CommandLineBuilder
- middleware
- InvocationMiddleware