コード例 #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));
 }
コード例 #3
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;
        }
コード例 #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;
 }