示例#1
0
 internal void Initialize(ITranslationStore translationStore)
 {
     this._translationStore = translationStore;
     Configure();
     this.TranslationProfileState = TranslationProfileState.Initialized;
     this.IsInitialized           = true;
 }
示例#2
0
 public CategoryController(IRepository <Category> repository)
 {
     _repository       = repository;
     _translationStore = TranslationStores.Get(CurrentInstance.Name);
 }
示例#3
0
 public BrandController(BrandService brandService)
 {
     _brandService     = brandService;
     _translationStore = TranslationStores.Get(CurrentInstance.Name);
 }
示例#4
0
 public CategoryController(IRepository<Category> repository)
 {
     _repository = repository;
     _translationStore = TranslationStores.Get(CurrentInstance.Name);
 }
 public CachedTranslactionStore(ITranslationStore underlyingStore, IEnumerable<Type> typesToCache)
 {
     _underlyingStore = underlyingStore;
     _typesToCache = new HashSet<Type>(typesToCache);
 }
示例#6
0
 public BrandController(BrandService brandService)
 {
     _brandService = brandService;
     _translationStore = TranslationStores.Get(CurrentInstance.Name);
 }
 public CachedTranslactionStore(ITranslationStore underlyingStore)
     : this(underlyingStore, new[] { typeof(Brand), typeof(Category), typeof(ProductType) })
 {
 }
示例#8
0
 public static void Register(string instance, ITranslationStore store)
 {
     Remove(instance);
     _storesByInstance.Add(instance, store);
 }
示例#9
0
 public ProductController()
 {
     _translationStore = TranslationStores.Get(CurrentInstance.Name);
 }
 public ProductTypeController(IRepository <ProductType> repository)
 {
     _repository       = repository;
     _translationStore = TranslationStores.Get(CurrentInstance.Name);
 }
示例#11
0
 public static void Register(string instance, ITranslationStore store)
 {
     Remove(instance);
     _storesByInstance.Add(instance, store);
 }
示例#12
0
 public CachedTranslactionStore(ITranslationStore underlyingStore, IEnumerable <Type> typesToCache)
 {
     _underlyingStore = underlyingStore;
     _typesToCache    = new HashSet <Type>(typesToCache);
 }
示例#13
0
 public CachedTranslactionStore(ITranslationStore underlyingStore)
     : this(underlyingStore, new[] { typeof(Brand), typeof(Category), typeof(ProductType) })
 {
 }
示例#14
0
 public ProductTypeController(IRepository<ProductType> repository)
 {
     _repository = repository;
     _translationStore = TranslationStores.Get(CurrentInstance.Name);
 }