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