コード例 #1
0
        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>();
        }
コード例 #2
0
ファイル: Startup.cs プロジェクト: mikeathers/PaperStreet
        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>();
        }
コード例 #3
0
        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>();
        }
コード例 #4
0
 private static void RegisterIoCServices(IServiceCollection services)
 {
     RegisterEventBus.RegisterServices(services);
 }
コード例 #5
0
 public static IApplicationBuilder UseRabbitListener(this IApplicationBuilder app)
 {
     RegisterEventBus.UseRabbitListener(app, "Bitcoin");
     return(app);
 }
コード例 #6
0
ファイル: Startup.cs プロジェクト: levan0106/Blue
 public static IApplicationBuilder UseRabbitListener(this IApplicationBuilder app)
 {
     RegisterEventBus.UseRabbitListener(app, "notification-service");
     return(app);
 }