HostingExtensions.UseCommandHandler 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
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET