public QuestionAspectLoaderCache(
     IQuestionAspectMapper mappper,
     IQuestionRepository repository,
     ICacheServiceFactory cacheServiceFactory)
     : base(mappper, repository)
 {
     _cacheServiceFactory = cacheServiceFactory;
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 protected ActionRequestHandler(
     ICacheServiceFactory cacheServiceFactory,
     IValidatorFactory validatorFactory)
     : this(cacheServiceFactory, validatorFactory, null, null)
 {
 }
 public ServiceAbstractFactoryImpl()
 {
     _renren = new RenrenServiceFactoryImpl();
     _cache  = new CacheServiceFactoryImpl();
 }
Exemplo n.º 6
0
 private SqlDataContext(IMapper mapper, ICacheServiceFactory cacheServiceFactory)
 {
     _mapper = mapper;
     _cacheService = cacheServiceFactory.Build(TimeSpan.FromMinutes(0));
 }
Exemplo n.º 7
0
 public SqlDataContext(string connectionString, int connectionTimeout, IMapper mapper, ICacheServiceFactory cacheServiceFactory)
     : this(connectionString, mapper, cacheServiceFactory)
 {
     _connectionString = connectionString;
     _connectionTimeout = connectionTimeout;
 }
Exemplo n.º 8
0
 public SqlDataContext(string connectionString, IMapper mapper, ICacheServiceFactory cacheServiceFactory)
     : this(mapper, cacheServiceFactory)
 {
     _connectionString = connectionString;
 }
Exemplo n.º 9
0
 /// <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;
 }