Ejemplo n.º 1
0
 public AssetConditionService(
     IAssetConditionLayerRepository assetConditionLayerRepository,
     IAssetDefaultConditionRepository assetDefaultConditionRepository,
     IAssetDefaultConditionLayerRepository assetDefaultConditionLayerRepository,
     IAssetConditionLayerLinkClientRepository assetConditionLayerLinkClientRepository,
     IAssetsForClientCacheManager cacheManager,
     ICachedAssetConditionsService cachedAssetConditionsService)
 {
     _assetConditionLayerRepository           = assetConditionLayerRepository;
     _assetDefaultConditionRepository         = assetDefaultConditionRepository;
     _assetDefaultConditionLayerRepository    = assetDefaultConditionLayerRepository;
     _assetConditionLayerLinkClientRepository = assetConditionLayerLinkClientRepository;
     _cacheManager = cacheManager;
     _cachedAssetConditionsService = cachedAssetConditionsService;
 }
 public AssetConditionService(
     IAssetConditionLayerRepository assetConditionLayerRepository,
     IAssetDefaultConditionRepository assetDefaultConditionRepository,
     IAssetDefaultConditionLayerRepository assetDefaultConditionLayerRepository,
     IAssetConditionLayerLinkClientRepository assetConditionLayerLinkClientRepository,
     IAssetsForClientCacheManager cacheManager,
     ICachedAssetConditionsService cachedAssetConditionsService,
     IMyNoSqlWriterWrapper <AssetConditionNoSql> myNoSqlWriter,
     int maxClientsInNoSqlCache)
 {
     _assetConditionLayerRepository           = assetConditionLayerRepository;
     _assetDefaultConditionRepository         = assetDefaultConditionRepository;
     _assetDefaultConditionLayerRepository    = assetDefaultConditionLayerRepository;
     _assetConditionLayerLinkClientRepository = assetConditionLayerLinkClientRepository;
     _cacheManager = cacheManager;
     _cachedAssetConditionsService = cachedAssetConditionsService;
     _myNoSqlWriter          = myNoSqlWriter;
     _maxClientsInNoSqlCache = maxClientsInNoSqlCache;
 }
        public CachedAssetConditionsService(
            IAssetDefaultConditionLayerRepository assetDefaultConditionLayerRepository,
            IAssetConditionRepository assetConditionRepository,
            IAssetDefaultConditionRepository assetDefaultConditionRepository,
            IDistributedCache <IAssetDefaultConditionLayer, AssetDefaultConditionLayerDto> assetDefaultConditionLayerCache,
            IDistributedCache <IAssetCondition, AssetConditionDto> assetConditionCache,
            IDistributedCache <IAssetDefaultCondition, AssetDefaultConditionDto> assetDefaultConditionCache,
            IAssetsForClientCacheManager cacheManager
            )
        {
            _assetDefaultConditionLayerRepository = assetDefaultConditionLayerRepository;
            _assetConditionRepository             = assetConditionRepository;
            _assetDefaultConditionRepository      = assetDefaultConditionRepository;

            #region Ondemand caches initialization
            _assetDefaultConditionLayerCache = assetDefaultConditionLayerCache;
            _assetConditionCache             = assetConditionCache;
            _assetDefaultConditionCache      = assetDefaultConditionCache;
            _cacheManager = cacheManager;

            #endregion
        }