編集

次の方法で共有


HostingExtensions.UseCommandHandler Method

Definition

Overloads

UseCommandHandler(IHostBuilder, Type, Type)
UseCommandHandler<TCommand,THandler>(IHostBuilder)

UseCommandHandler(IHostBuilder, Type, Type)

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ UseCommandHandler(Microsoft::Extensions::Hosting::IHostBuilder ^ builder, Type ^ commandType, Type ^ handlerType);
public static Microsoft.Extensions.Hosting.IHostBuilder UseCommandHandler(this Microsoft.Extensions.Hosting.IHostBuilder builder, Type commandType, Type handlerType);
static member UseCommandHandler : Microsoft.Extensions.Hosting.IHostBuilder * Type * Type -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function UseCommandHandler (builder As IHostBuilder, commandType As Type, handlerType As Type) As IHostBuilder

Parameters

builder
IHostBuilder
commandType
Type
handlerType
Type

Returns

Applies to

UseCommandHandler<TCommand,THandler>(IHostBuilder)

public:
generic <typename TCommand, typename THandler>
 where TCommand : System::CommandLine::Command where THandler : System::CommandLine::Invocation::ICommandHandler[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ UseCommandHandler(Microsoft::Extensions::Hosting::IHostBuilder ^ builder);
public static Microsoft.Extensions.Hosting.IHostBuilder UseCommandHandler<TCommand,THandler>(this Microsoft.Extensions.Hosting.IHostBuilder builder) where TCommand : System.CommandLine.Command where THandler : System.CommandLine.Invocation.ICommandHandler;
static member UseCommandHandler : Microsoft.Extensions.Hosting.IHostBuilder -> Microsoft.Extensions.Hosting.IHostBuilder (requires 'Command :> System.CommandLine.Command and 'Handler :> System.CommandLine.Invocation.ICommandHandler)
<Extension()>
Public Function UseCommandHandler(Of TCommand As Command, THandler As Command) (builder As IHostBuilder) As IHostBuilder

Type Parameters

TCommand
THandler

Parameters

builder
IHostBuilder

Returns

Applies to