Example #1
0
 public Handler(
     IInfoTrackCredentialRepository infoTrackCredentialRepository,
     WCADbContext wCADbContext
     )
 {
     _infoTrackCredentialRepository = infoTrackCredentialRepository;
     _wCADbContext = wCADbContext;
 }
            public Handler(
                WCADbContext wCADbContext,
                Validator validator,
                IOptions <WCACoreSettings> appSettingsAccessor,
                IInfoTrackCredentialRepository infoTrackCredentialRepository,
                IEmailSender emailSender)
            {
                if (appSettingsAccessor is null)
                {
                    throw new ArgumentNullException(nameof(appSettingsAccessor));
                }

                _appSettings  = appSettingsAccessor.Value;
                _wCADbContext = wCADbContext;
                _validator    = validator;
                _infoTrackCredentialRepository = infoTrackCredentialRepository;
                _emailSender = emailSender;
            }
            public Handler(
                Validator validator,
                IActionstepService actionstepService,
                IOptions <WCACoreSettings> settingsAccessor,
                IMediator mediator,
                IInfoTrackCredentialRepository infoTrackCredentialRepository,
                ITelemetryLogger telemetryLogger)
            {
                if (settingsAccessor is null)
                {
                    throw new ArgumentNullException(nameof(settingsAccessor));
                }

                this.validator                     = validator ?? throw new ArgumentNullException(nameof(validator));
                this.actionstepService             = actionstepService ?? throw new ArgumentNullException(nameof(actionstepService));
                this.mediator                      = mediator ?? throw new ArgumentNullException(nameof(mediator));
                this.infoTrackCredentialRepository = infoTrackCredentialRepository ?? throw new ArgumentNullException(nameof(infoTrackCredentialRepository));
                this.telemetryLogger               = telemetryLogger ?? throw new ArgumentNullException(nameof(telemetryLogger));
                actionstepSettings                 = settingsAccessor.Value?.ActionstepSettings;
            }
Example #4
0
 public Handler(
     IActionstepService actionstepService,
     IMediator mediator,
     WCADbContext wCADbContext,
     IMapper mapper,
     ITelemetryLogger telemetryLogger,
     IInfoTrackCredentialRepository infoTrackCredentialRepository,
     ILoggerFactory loggerFactory,
     IOptions <WCACoreSettings> appSettings,
     ITokenSetRepository tokenSetRepository)
 {
     _actionstepService             = actionstepService;
     _mediator                      = mediator;
     _wCADbContext                  = wCADbContext;
     _mapper                        = mapper;
     _telemetryLogger               = telemetryLogger;
     _infoTrackCredentialRepository = infoTrackCredentialRepository;
     _appSettings                   = appSettings;
     _tokenSetRepository            = tokenSetRepository;
     _logger                        = loggerFactory.CreateLogger <Handler>();
 }