AutoDispatch.Templates 1.5.0

There is a newer version of this package available.
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.

Version Downloads Last Updated
1.21.0 33 9/17/2026
1.20.0 38 9/17/2026
1.19.0 37 9/16/2026
1.18.0 37 9/16/2026
1.17.0 45 9/16/2026
1.16.0 39 9/16/2026
1.15.0 37 9/16/2026
1.14.1 41 9/16/2026
1.14.0 43 9/16/2026
1.5.0 171 7/28/2026