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