private static void RegisterIoCServices(IServiceCollection services) { RegisterEventBus.RegisterServices(services); // Subscriptions services.AddTransient <SendEmailEventHandler>(); // Domain Events services.AddTransient <IEventHandler <SendEmailEvent>, SendEmailEventHandler>(); // Application Services services.AddTransient <ISendGridClient, SendGridClient>(); services.AddTransient <IEmailSender, EmailSender>(); }
private static void RegisterIoCServices(IServiceCollection services) { RegisterEventBus.RegisterServices(services); // Application Services services.AddTransient <IJwtGenerator, JwtGenerator>(); services.AddTransient <IUserConfirmationEmail, UserConfirmationEmail>(); services.AddTransient <IEmailBuilder, EmailBuilder>(); services.AddTransient <IFailedIdentityResult, FailedIdentityResult>(); services.AddTransient <ITokenHandler, TokenHandler>(); // Data services.AddTransient <AuthenticationDbContext>(); }
private static void RegisterIoCServices(IServiceCollection services) { RegisterEventBus.RegisterServices(services); // Subscriptions services.AddTransient <AuthenticationLogEventHandler>(); services.AddTransient <ErrorLogEventHandler>(); // Domain Events services.AddTransient <IEventHandler <AuthenticationLogEvent>, AuthenticationLogEventHandler>(); services.AddTransient <IEventHandler <ErrorLogEvent>, ErrorLogEventHandler>(); // Data services.AddTransient <IAuthenticationLogRepository, AuthenticationLogRepository>(); services.AddTransient <IErrorLogRepository, ErrorLogRepository>(); services.AddTransient <LoggingDbContext>(); }
private static void RegisterIoCServices(IServiceCollection services) { RegisterEventBus.RegisterServices(services); }
public static IApplicationBuilder UseRabbitListener(this IApplicationBuilder app) { RegisterEventBus.UseRabbitListener(app, "Bitcoin"); return(app); }
public static IApplicationBuilder UseRabbitListener(this IApplicationBuilder app) { RegisterEventBus.UseRabbitListener(app, "notification-service"); return(app); }