public ApplicationStatusChangedToPaidIntegrationEventHandler( ScholarshipContext scholarshipContext, ILogger <ApplicationStatusChangedToPaidIntegrationEventHandler> logger) { _scholarshipContext = scholarshipContext; _logger = logger ?? throw new System.ArgumentNullException(nameof(logger)); }
public ApplicationStatusChangedToAwaitingValidationIntegrationEventHandler( ScholarshipContext scholarshipContext, IScholarshipIntegrationEventService scholarshipIntegrationEventService, ILogger <ApplicationStatusChangedToAwaitingValidationIntegrationEventHandler> logger) { _scholarshipContext = scholarshipContext; _scholarshipIntegrationEventService = scholarshipIntegrationEventService; _logger = logger ?? throw new System.ArgumentNullException(nameof(logger)); }
public ScholarshipController(ScholarshipContext context, IOptionsSnapshot<ScholarshipSettings> settings, IIdentityService identityService, IScholarshipIntegrationEventService scholarshipIntegrationEventService) { _scholarshipContext = context ?? throw new ArgumentNullException(nameof(context)); _scholarshipIntegrationEventService = scholarshipIntegrationEventService ?? throw new ArgumentNullException(nameof(scholarshipIntegrationEventService)); _identityService = identityService ?? throw new ArgumentNullException(nameof(identityService)); _settings = settings.Value; context.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking; }
public ScholarshipIntegrationEventService( ILogger <ScholarshipIntegrationEventService> logger, IEventBus eventBus, ScholarshipContext scholarshipContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _scholarshipContext = scholarshipContext ?? throw new ArgumentNullException(nameof(scholarshipContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_scholarshipContext.Database.GetDbConnection()); }
public ScholarshipService(ScholarshipContext dbContext, IOptions <ScholarshipSettings> settings, ILogger <ScholarshipService> logger) { _settings = settings.Value; _scholarshipContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _logger = logger; }
public PicController(IWebHostEnvironment env, ScholarshipContext scholarshipContext) { _env = env; _scholarshipContext = scholarshipContext; }