Beispiel #1
0
 public DictionaryCache(DictionarySettings settings)
     : base("Vohil.Dictionary.Cache", Settings.Caching.DefaultDataCacheSize)
 {
     Event.Subscribe("publish:end", this.OnPublishEnd);
     Event.Subscribe("publish:end:remote", this.OnPublishEnd);
     this._settings = settings;
 }
 public DictionaryItemRepository(
     DictionarySettings settings,
     IMessageBus <DictionaryMessageBus> messageBus,
     BaseLog logger)
 {
     this.settings   = settings;
     this.messageBus = messageBus;
     this.logger     = logger;
 }
 public DictionaryService(
     DictionaryItemRepository repository,
     DictionarySettings setting,
     DictionaryCache cache,
     BaseLog logger)
 {
     this.repository = repository;
     this.setting    = setting;
     this.cache      = cache;
     this.logger     = logger;
 }
Beispiel #4
0
 public DictionaryCache(string cacheName, string cacheSize, DictionarySettings settings)
     : base(cacheName, StringUtil.ParseSizeString(cacheSize))
 {
     this._settings = settings;
 }