AutoDispatch.Templates
1.5.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet new install AutoDispatch.Templates@1.5.0
This package contains a .NET Template Package you can call from the shell/command line.
AutoDispatch.Templates
dotnet new item template that scaffolds a command + [Handler] class pair for
AutoDispatch.Generator.
Install
dotnet new install AutoDispatch.Templates
Use
dotnet new autodispatch-handler -n CreateOrder --namespace MyApp.Orders
Generates CreateOrderCommand.cs:
namespace MyApp.Orders;
public sealed record CreateOrderCommand(/* TODO: add command properties */ string Value);
[AutoDispatch.Handler]
public sealed class CreateOrderHandler
{
public System.Threading.Tasks.Task HandleAsync(CreateOrderCommand command, System.Threading.CancellationToken ct = default)
{
// TODO: implement handler logic.
throw new System.NotImplementedException();
}
}
Uninstall
dotnet new uninstall AutoDispatch.Templates
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.