示例#1
0
 public Cache(IDistributedCacheWrapper distributedCache, ISchemaProvider schemaProvider, IOptions <DistributedCacheConfiguration> distributedCacheConfiguration, IConfiguration configuration)
 {
     _distributedCache = distributedCache;
     _schemaProvider   = schemaProvider;
     _distributedCacheConfiguration = distributedCacheConfiguration;
     _configuration = configuration;
 }
 public OrganisationService(IDistributedCacheWrapper distributedCache, IEnumerable <IOrganisationProvider> organisationProviders, IPageHelper pageHelper, IPageFactory pageFactory)
 {
     _distributedCache      = distributedCache;
     _pageHelper            = pageHelper;
     _organisationProviders = organisationProviders;
     _pageFactory           = pageFactory;
 }
 public SuccessPageFactory(IPageHelper pageHelper, IPageFactory pageFactory, ISessionHelper sessionHelper, IDistributedCacheWrapper distributedCache)
 {
     _pageHelper       = pageHelper;
     _pageFactory      = pageFactory;
     _sessionHelper    = sessionHelper;
     _distributedCache = distributedCache;
 }
示例#4
0
 public MemDistCacheFactory(ISyncCacheProvider pollySyncCacheProvider, IDistributedCacheWrapper distributedCacheWrapper, ISystemClock mockableDateTime, ILoggerWrapper <MemDistCache <T> > logger)
 {
     _pollySyncCacheProvider  = pollySyncCacheProvider;
     _distributedCacheWrapper = distributedCacheWrapper;
     _mockableDateTime        = mockableDateTime;
     _logger = logger;
 }
示例#5
0
 public EmailService(ISessionHelper sessionHelper, IDistributedCacheWrapper distributedCache, IEnumerable <IEmailProvider> emailProviders, IActionHelper actionHelper)
 {
     _sessionHelper    = sessionHelper;
     _distributedCache = distributedCache;
     _emailProvider    = emailProviders.First();
     _actionHelper     = actionHelper;
 }
示例#6
0
 public BookingService(
     IDistributedCacheWrapper distributedCache,
     IPageHelper pageHelper,
     IEnumerable <IBookingProvider> bookingProviders,
     IPageFactory pageFactory,
     IMappingService mappingService,
     IWebHostEnvironment environment,
     ISchemaFactory schemaFactory,
     ISessionHelper sessionHelper,
     IHashUtil hashUtil,
     IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration,
     IHttpContextAccessor httpContextAccessor)
 {
     _distributedCache = distributedCache;
     _pageHelper       = pageHelper;
     _bookingProviders = bookingProviders;
     _pageFactory      = pageFactory;
     _mappingService   = mappingService;
     _environment      = environment;
     _schemaFactory    = schemaFactory;
     _sessionHelper    = sessionHelper;
     _hashUtil         = hashUtil;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
     _httpContextAccessor = httpContextAccessor;
 }
 public FileUploadService(IDistributedCacheWrapper distributedCache,
                          IPageFactory pageFactory,
                          IPageHelper pageHelper)
 {
     _distributedCache = distributedCache;
     _pageFactory      = pageFactory;
     _pageHelper       = pageHelper;
 }
 public GetProductQueryHandler
 (
     IDistributedCacheWrapper distributedCache,
     IElasticClient elasticClient
 )
 {
     _distributedCache = distributedCache;
     _elasticClient    = elasticClient;
 }
示例#9
0
 public PageFactory(
     IPageHelper pageHelper,
     IEnumerable <ITagParser> tagParsers,
     IDistributedCacheWrapper distributedCache)
 {
     _pageHelper       = pageHelper;
     _tagParsers       = tagParsers;
     _distributedCache = distributedCache;
 }
示例#10
0
        public MemDistCache(ISyncCacheProvider pollySyncCacheProvider, IDistributedCacheWrapper distributedCacheWrapper, ISystemClock mockableDateTime, TimeSpan defaultCacheDuration, Func <DateTimeOffset, DateTimeOffset> whenDataIsStaleDelegate, ILoggerWrapper <MemDistCache <T> > logger)
        {
            _pollySyncCacheProvider  = pollySyncCacheProvider;
            _distributedCacheWrapper = distributedCacheWrapper;
            _mockableDateTime        = mockableDateTime;

            _defaultCacheDuration    = defaultCacheDuration;
            _whenDataIsStaleDelegate = whenDataIsStaleDelegate;
            _logger = logger;
        }
示例#11
0
 public ElementHelper(IDistributedCacheWrapper distributedCacheWrapper,
                      IElementMapper elementMapper,
                      IWebHostEnvironment environment,
                      IHttpContextAccessor httpContextAccessor)
 {
     _distributedCache    = distributedCacheWrapper;
     _elementMapper       = elementMapper;
     _environment         = environment;
     _httpContextAccessor = httpContextAccessor;
 }
 public TemplatedEmailService(
     IEnumerable <ITemplatedEmailProvider> templatedEmailProviders,
     IActionHelper actionHelper,
     ISessionHelper sessionHelper,
     IDistributedCacheWrapper distributedCache)
 {
     _templatedEmailProviders = templatedEmailProviders;
     _actionHelper            = actionHelper;
     _sessionHelper           = sessionHelper;
     _distributedCache        = distributedCache;
 }
示例#13
0
 public AddressService(
     IDistributedCacheWrapper distributedCache,
     IPageHelper pageHelper,
     IEnumerable <IAddressProvider> addressProviders,
     IPageFactory pageFactory)
 {
     _distributedCache = distributedCache;
     _pageHelper       = pageHelper;
     _addressProviders = addressProviders;
     _pageFactory      = pageFactory;
 }
示例#14
0
 public StreetService(
     IDistributedCacheWrapper distributedCache,
     IEnumerable <IStreetProvider> streetProviders,
     IPageHelper pageHelper,
     IPageFactory pageFactory)
 {
     _distributedCache = distributedCache;
     _pageHelper       = pageHelper;
     _streetProviders  = streetProviders;
     _pageFactory      = pageFactory;
 }
示例#15
0
 public MappingService(IDistributedCacheWrapper distributedCache,
                       IElementMapper elementMapper,
                       ISchemaFactory schemaFactory,
                       IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration,
                       ILogger <MappingService> logger)
 {
     _distributedCache = distributedCache;
     _elementMapper    = elementMapper;
     _schemaFactory    = schemaFactory;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
     _logger = logger;
 }
 public FileUploadService(IDistributedCacheWrapper distributedCache,
                          IEnumerable <IFileStorageProvider> fileStorageProviders,
                          IPageFactory pageFactory,
                          IPageHelper pageHelper,
                          IConfiguration configuration)
 {
     _distributedCache     = distributedCache;
     _fileStorageProviders = fileStorageProviders;
     _pageFactory          = pageFactory;
     _pageHelper           = pageHelper;
     _configuration        = configuration;
 }
示例#17
0
 public BookingService(
     IDistributedCacheWrapper distributedCache,
     IPageHelper pageHelper,
     IEnumerable <IBookingProvider> bookingProviders,
     IPageFactory pageFactory,
     IMappingService mappingService,
     IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration)
 {
     _distributedCache = distributedCache;
     _pageHelper       = pageHelper;
     _bookingProviders = bookingProviders;
     _pageFactory      = pageFactory;
     _mappingService   = mappingService;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
 }
 public RetrieveExternalDataService(
     IGateway gateway,
     ISessionHelper sessionHelper,
     IDistributedCacheWrapper distributedCache,
     IMappingService mappingService,
     IActionHelper actionHelper,
     IWebHostEnvironment environment)
 {
     _gateway          = gateway;
     _sessionHelper    = sessionHelper;
     _distributedCache = distributedCache;
     _mappingService   = mappingService;
     _actionHelper     = actionHelper;
     _environment      = environment;
 }
示例#19
0
 public S3FileSchemaProvider(IS3Gateway s3Service,
                             IWebHostEnvironment environment,
                             IDistributedCacheWrapper distributedCacheWrapper,
                             IConfiguration configuration,
                             IOptions <DistributedCacheConfiguration> distributedCacheConfiguration,
                             IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration,
                             ILogger <ISchemaProvider> logger)
 {
     _s3Gateway                               = s3Service;
     _environment                             = environment;
     _configuration                           = configuration;
     _logger                                  = logger;
     _distributedCacheWrapper                 = distributedCacheWrapper;
     _distributedCacheConfiguration           = distributedCacheConfiguration.Value;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
 }
示例#20
0
 public SchemaFactory(IDistributedCacheWrapper distributedCache,
                      ISchemaProvider schemaProvider,
                      ILookupSchemaTransformFactory lookupSchemaFactory,
                      IReusableElementSchemaTransformFactory reusableElementSchemaFactory,
                      IOptions <DistributedCacheConfiguration> distributedCacheConfiguration,
                      IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration,
                      IConfiguration configuration)
 {
     _distributedCache                        = distributedCache;
     _schemaProvider                          = schemaProvider;
     _lookupSchemaFactory                     = lookupSchemaFactory;
     _reusableElementSchemaFactory            = reusableElementSchemaFactory;
     _distributedCacheConfiguration           = distributedCacheConfiguration.Value;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
     _configuration = configuration;
 }
示例#21
0
 public PageHelper(IViewRender viewRender, IElementHelper elementHelper, IDistributedCacheWrapper distributedCache,
                   IOptions <FormConfiguration> disallowedKeys, IWebHostEnvironment enviroment, ICache cache,
                   IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration,
                   IEnumerable <IPaymentProvider> paymentProviders, ISessionHelper sessionHelper, IHttpContextAccessor httpContextAccessor)
 {
     _viewRender       = viewRender;
     _elementHelper    = elementHelper;
     _distributedCache = distributedCache;
     _disallowedKeys   = disallowedKeys.Value;
     _environment      = enviroment;
     _cache            = cache;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
     _paymentProviders    = paymentProviders;
     _sessionHelper       = sessionHelper;
     _httpContextAccessor = httpContextAccessor;
 }
示例#22
0
 public MappingService(IDistributedCacheWrapper distributedCache,
                       IElementMapper elementMapper,
                       ISchemaFactory schemaFactory,
                       IWebHostEnvironment environment,
                       IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration,
                       IDetectionService detectionService,
                       ILogger <MappingService> logger)
 {
     _distributedCache = distributedCache;
     _elementMapper    = elementMapper;
     _schemaFactory    = schemaFactory;
     _environment      = environment;
     _detectionService = detectionService;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
     _logger = logger;
 }
示例#23
0
 public PageService(
     IEnumerable <IElementValidator> validators,
     IPageHelper pageHelper,
     ISessionHelper sessionHelper,
     IAddressService addressService,
     IFileUploadService fileUploadService,
     IStreetService streetService,
     IOrganisationService organisationService,
     IDistributedCacheWrapper distributedCache,
     IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration,
     IWebHostEnvironment environment,
     ISuccessPageFactory successPageFactory,
     IPageFactory pageFactory,
     IBookingService bookingService,
     ISchemaFactory schemaFactory,
     IIncomingDataHelper incomingDataHelper,
     IActionsWorkflow actionsWorkflow,
     IAddAnotherService addAnotherService,
     IFormAvailabilityService formAvailabilityService,
     ILogger <IPageService> logger,
     IEnumerable <IFileStorageProvider> fileStorageProviders,
     IConfiguration configuration)
 {
     _validators                = validators;
     _pageHelper                = pageHelper;
     _sessionHelper             = sessionHelper;
     _streetService             = streetService;
     _addressService            = addressService;
     _bookingService            = bookingService;
     _organisationService       = organisationService;
     _fileUploadService         = fileUploadService;
     _distributedCache          = distributedCache;
     _schemaFactory             = schemaFactory;
     _successPageContentFactory = successPageFactory;
     _pageContentFactory        = pageFactory;
     _environment               = environment;
     _formAvailabilityService   = formAvailabilityService;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
     _incomingDataHelper   = incomingDataHelper;
     _actionsWorkflow      = actionsWorkflow;
     _logger               = logger;
     _addAnotherService    = addAnotherService;
     _fileStorageProviders = fileStorageProviders;
     _configuration        = configuration;
 }
示例#24
0
 public PageHelper(IViewRender viewRender, IElementHelper elementHelper,
                   IDistributedCacheWrapper distributedCache,
                   IOptions <FormConfiguration> disallowedKeys,
                   IWebHostEnvironment enviroment,
                   IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration,
                   ISessionHelper sessionHelper,
                   IEnumerable <IFileStorageProvider> fileStorageProviders,
                   IConfiguration configuration)
 {
     _viewRender           = viewRender;
     _elementHelper        = elementHelper;
     _distributedCache     = distributedCache;
     _fileStorageProviders = fileStorageProviders;
     _disallowedKeys       = disallowedKeys.Value;
     _environment          = enviroment;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
     _sessionHelper = sessionHelper;
     _configuration = configuration;
 }
示例#25
0
 public SchemaFactory(IDistributedCacheWrapper distributedCache,
                      ISchemaProvider schemaProvider,
                      ILookupSchemaTransformFactory lookupSchemaFactory,
                      IReusableElementSchemaTransformFactory reusableElementSchemaFactory,
                      IOptions <DistributedCacheConfiguration> distributedCacheConfiguration,
                      IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration,
                      IConfiguration configuration,
                      IFormSchemaIntegrityValidator formSchemaIntegrityValidator,
                      IEnumerable <IUserPageTransformFactory> userPageTransformFactories)
 {
     _distributedCache                        = distributedCache;
     _schemaProvider                          = schemaProvider;
     _lookupSchemaFactory                     = lookupSchemaFactory;
     _reusableElementSchemaFactory            = reusableElementSchemaFactory;
     _distributedCacheConfiguration           = distributedCacheConfiguration.Value;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
     _configuration = configuration;
     _formSchemaIntegrityValidator = formSchemaIntegrityValidator;
     _userPageTransformFactories   = userPageTransformFactories;
 }
示例#26
0
 public SubmitService(
     IGateway gateway,
     IPageHelper pageHelper,
     IWebHostEnvironment environment,
     IOptions <SubmissionServiceConfiguration> submissionServiceConfiguration,
     IDistributedCacheWrapper distributedCache,
     ISchemaFactory schemaFactory,
     IReferenceNumberProvider referenceNumberProvider,
     IEnumerable <ISubmitProvider> submitProviders,
     ILogger <SubmitService> logger)
 {
     _gateway     = gateway;
     _pageHelper  = pageHelper;
     _environment = environment;
     _submissionServiceConfiguration = submissionServiceConfiguration.Value;
     _distributedCache        = distributedCache;
     _schemaFactory           = schemaFactory;
     _referenceNumberProvider = referenceNumberProvider;
     _submitProviders         = submitProviders;
     _logger = logger;
 }
示例#27
0
 public PageService(
     IEnumerable <IElementValidator> validators,
     IPageHelper pageHelper,
     ISessionHelper sessionHelper,
     IAddressService addressService,
     IFileUploadService fileUploadService,
     IStreetService streetService,
     IOrganisationService organisationService,
     IDistributedCacheWrapper distributedCache,
     IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration,
     IWebHostEnvironment environment,
     ISuccessPageFactory successPageFactory,
     IPageFactory pageFactory,
     IBookingService bookingService,
     ISchemaFactory schemaFactory,
     IMappingService mappingService,
     IPayService payService,
     IIncomingDataHelper incomingDataHelper,
     IActionsWorkflow actionsWorkflow)
 {
     _validators                = validators;
     _pageHelper                = pageHelper;
     _sessionHelper             = sessionHelper;
     _streetService             = streetService;
     _addressService            = addressService;
     _bookingService            = bookingService;
     _organisationService       = organisationService;
     _fileUploadService         = fileUploadService;
     _distributedCache          = distributedCache;
     _schemaFactory             = schemaFactory;
     _successPageContentFactory = successPageFactory;
     _pageContentFactory        = pageFactory;
     _environment               = environment;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
     _payService         = payService;
     _mappingService     = mappingService;
     _incomingDataHelper = incomingDataHelper;
     _actionsWorkflow    = actionsWorkflow;
 }
示例#28
0
 public RedisFileStorageProvider(IDistributedCacheWrapper distributedCache) =>
示例#29
0
 public RestrictCombinedFileSizeValidator(ISessionHelper sessionHelper, IDistributedCacheWrapper distributedCache)
 {
     _sessionHelper    = sessionHelper;
     _distributedCache = distributedCache;
 }
 public MultipleFileUploadElementValidator(ISessionHelper sessionHelper, IDistributedCacheWrapper distributedCache)
 {
     _sessionHelper    = sessionHelper;
     _distributedCache = distributedCache;
 }