13 lines
387 B
C#
13 lines
387 B
C#
|
|
using Autofac;
|
||
|
|
using PlanTempus.Components.Users.Create;
|
||
|
|
|
||
|
|
namespace PlanTempus.Components;
|
||
|
|
|
||
|
|
public class CommandHandler(IComponentContext context) : ICommandHandler
|
||
|
|
{
|
||
|
|
public Task<TCommandResult> Handle<TCommand, TCommandResult>(TCommand command)
|
||
|
|
{
|
||
|
|
var handler = context.Resolve<ICommandHandler<TCommand, TCommandResult>>();
|
||
|
|
return handler.Handle(command);
|
||
|
|
}
|
||
|
|
}
|