コード例 #1
0
 public ApplicationStatusChangedToAwaitingValidationIntegrationEventHandler(
     ScholarshipContext scholarshipContext,
     IScholarshipIntegrationEventService scholarshipIntegrationEventService,
     ILogger <ApplicationStatusChangedToAwaitingValidationIntegrationEventHandler> logger)
 {
     _scholarshipContext = scholarshipContext;
     _scholarshipIntegrationEventService = scholarshipIntegrationEventService;
     _logger = logger ?? throw new System.ArgumentNullException(nameof(logger));
 }
コード例 #2
0
        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;
        }