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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.