Sprog

InvocationExtensions.UseMiddleware Method

Definition

Overloads

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

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

Returns

Applies to