示例#1
0
        public void ConfigureServices(IServiceCollection services)
        {
            SpfSchedulerCommonStartUp.ConfigureCommonServices(services);

            services
            .AddTransient <ISpfSchedulerConfig, SpfSchedulerConfig>()
            .AddTransient <IHandle <SpfEntityCreated>, SpfSchedulerHandler>()
            .AddTransient <ISpfSchedulerDao, SpfSchedulerDao>();
        }
        public void ConfigureServices(IServiceCollection services)
        {
            SpfSchedulerCommonStartUp.ConfigureCommonServices(services);

            services
            .AddTransient <ISpfPeriodicSchedulerConfig, SpfPeriodicSchedulerConfig>()
            .AddTransient <IProcess, SpfPollSchedulerProcessor>()
            .AddTransient <ISpfPeriodicSchedulerDao, SpfPeriodicSchedulerDao>()
            .AddTransient <IMessagePublisher, SnsMessagePublisher>();
        }