Skip to content

Instantly share code, notes, and snippets.

@rafaeldalsenter
Created April 8, 2020 21:33
Show Gist options
  • Select an option

  • Save rafaeldalsenter/7fc68fce9aa018eb70fe8a79564d27b3 to your computer and use it in GitHub Desktop.

Select an option

Save rafaeldalsenter/7fc68fce9aa018eb70fe8a79564d27b3 to your computer and use it in GitHub Desktop.
public static void RegisterServices(IServiceCollection services, IConfiguration configuration)
{
...
services.AddScoped<IRequestHandler<CreateClienteCommand, CommandReturnDto>, CreateClienteCommandHandler>();
services.AddScoped<IRequestHandler<RemoveClienteCommand, CommandReturnDto>, RemoveClienteCommandHandler>();
services.AddScoped<IRequestHandler<UpdateClienteCommand, CommandReturnDto>, UpdateClienteCommandHandler>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment