Пример #1
0
 public SerialNumberRuleFinder(IAppContext appContext
                               , ISerialNumberRuleRepository serialNumberRuleRepository
                               )
 {
     _appContext = appContext;
     _serialNumberRuleRepository = serialNumberRuleRepository;
     _cacheService = new Caching.CacheManager <Domain.SerialNumberRule>(SerialNumberRuleCache.CacheKey(_appContext), _appContext.PlatformSettings.CacheEnabled);
 }
Пример #2
0
 public SerialNumberRuleFinder(IAppContext appContext
                               , ISerialNumberRuleRepository serialNumberRuleRepository
                               //, ILocalizedLabelService localizedLabelService
                               )
 {
     _appContext = appContext;
     _serialNumberRuleRepository = serialNumberRuleRepository;
     //_localizedLabelService = localizedLabelService;
     _cacheService = new Caching.CacheManager <Domain.SerialNumberRule>(SerialNumberRuleCache.CacheKey(_appContext), SerialNumberRuleCache.BuildKey);
 }
Пример #3
0
 public SerialNumberRuleDeleter(IAppContext appContext
                                , ISerialNumberRuleRepository serialNumberRuleRepository
                                , ILocalizedLabelService localizedLabelService
                                , ISolutionComponentService solutionComponentService
                                , ISerialNumberDependency dependencyService
                                , IEntityPluginDeleter entityPluginDeleter)
 {
     _appContext = appContext;
     _serialNumberRuleRepository = serialNumberRuleRepository;
     _loc = _appContext.GetFeature <ILocalizedTextProvider>();
     _localizedLabelService    = localizedLabelService;
     _solutionComponentService = solutionComponentService;
     _dependencyService        = dependencyService;
     _entityPluginDeleter      = entityPluginDeleter;
     _cacheService             = new Caching.CacheManager <Domain.SerialNumberRule>(SerialNumberRuleCache.CacheKey(_appContext), _appContext.PlatformSettings.CacheEnabled);
 }
Пример #4
0
 public SerialNumberRuleUpdater(IAppContext appContext
                                , ISerialNumberRuleRepository serialNumberRuleRepository
                                , ILocalizedLabelService localizedLabelService
                                , ISerialNumberDependency dependencyService)
 {
     _appContext = appContext;
     _serialNumberRuleRepository = serialNumberRuleRepository;
     _loc = _appContext.GetFeature <ILocalizedTextProvider>();
     _localizedLabelService = localizedLabelService;
     _dependencyService     = dependencyService;
     _cacheService          = new Caching.CacheManager <Domain.SerialNumberRule>(SerialNumberRuleCache.CacheKey(_appContext), SerialNumberRuleCache.BuildKey);
 }