public QuestionAspectLoaderCache( IQuestionAspectMapper mappper, IQuestionRepository repository, ICacheServiceFactory cacheServiceFactory) : base(mappper, repository) { _cacheServiceFactory = cacheServiceFactory; }
/// <summary> /// Initializes a new instance of the LoggerStream /// </summary> /// <param name="logger">Instance of the logger.</param> /// <param name="apiService">The C360 API service for accessing employee information.</param> /// <param name="cacheServiceFactory">Factory for returning cache service references.</param> public ApiStream( ILogger logger, IApiService apiService, ICacheServiceFactory cacheServiceFactory) { Logger = logger; ApiService = apiService; CacheServiceFactory = cacheServiceFactory; }
protected ActionRequestHandler( ICacheServiceFactory cacheServiceFactory, IValidatorFactory validatorFactory, Action <ISwitch <RequestAction, Func <TRequest, CancellationToken, Task <TResponse> > > > action = default, Action <ISwitch <RequestAction, Func <TRequest, CancellationToken, Task <IAttempt> > > > validationAction = default) { CacheServiceFactory = cacheServiceFactory; ValidatorFactory = validatorFactory; RequestActions = Switch.Create(action); RequestValidation = Switch.Create(validationAction); }
protected ActionRequestHandler( ICacheServiceFactory cacheServiceFactory, IValidatorFactory validatorFactory) : this(cacheServiceFactory, validatorFactory, null, null) { }
public ServiceAbstractFactoryImpl() { _renren = new RenrenServiceFactoryImpl(); _cache = new CacheServiceFactoryImpl(); }
private SqlDataContext(IMapper mapper, ICacheServiceFactory cacheServiceFactory) { _mapper = mapper; _cacheService = cacheServiceFactory.Build(TimeSpan.FromMinutes(0)); }
public SqlDataContext(string connectionString, int connectionTimeout, IMapper mapper, ICacheServiceFactory cacheServiceFactory) : this(connectionString, mapper, cacheServiceFactory) { _connectionString = connectionString; _connectionTimeout = connectionTimeout; }
public SqlDataContext(string connectionString, IMapper mapper, ICacheServiceFactory cacheServiceFactory) : this(mapper, cacheServiceFactory) { _connectionString = connectionString; }
/// <summary> /// Initializes a new instance of the UserCacheFilter /// </summary> /// <param name="logger">The current configured logger</param> /// <param name="cacheServiceFactory">The factory for creating instances of the CacheService</param> /// <param name="job">The current job config entry.</param> public UserCacheFilter(ILogger logger, ICacheServiceFactory cacheServiceFactory) { Logger = logger; CacheServiceFactory = cacheServiceFactory; }