示例#1
0
        public RequeueAtStartup(IConfiguration configuration
                                , IBackgroundTaskLocalIntegrationEventService backgroundTaskLocalIntegrationEventService

                                )
        {
            _taskConfig = configuration.GetSection("Task_RequeueAtStartup").Get <BackgroundServiceConfiguration>();
            _backgroundTaskLocalIntegrationEventService = backgroundTaskLocalIntegrationEventService;
        }
示例#2
0
 public EventPublisher(IConfiguration configuration
                       , IBackgroundTaskLocalIntegrationEventService backgroundTaskLocalIntegrationEventService
                       , INServiceBusEndpoint nServiceBusEndpoint)
 {
     _taskConfig = configuration.GetSection("Task_EventPublisher").Get <BackgroundServiceConfiguration>();
     _backgroundTaskLocalIntegrationEventService = backgroundTaskLocalIntegrationEventService;
     _endpoint = nServiceBusEndpoint;
 }