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; }