예제 #1
0
 public ApplicationStatusChangedToPaidIntegrationEventHandler(
     ScholarshipContext scholarshipContext,
     ILogger <ApplicationStatusChangedToPaidIntegrationEventHandler> logger)
 {
     _scholarshipContext = scholarshipContext;
     _logger             = logger ?? throw new System.ArgumentNullException(nameof(logger));
 }
예제 #2
0
 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;
        }
예제 #4
0
 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());
 }
예제 #5
0
 public ScholarshipService(ScholarshipContext dbContext, IOptions <ScholarshipSettings> settings, ILogger <ScholarshipService> logger)
 {
     _settings           = settings.Value;
     _scholarshipContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _logger             = logger;
 }
예제 #6
0
 public PicController(IWebHostEnvironment env,
                      ScholarshipContext scholarshipContext)
 {
     _env = env;
     _scholarshipContext = scholarshipContext;
 }