protected UpgradedCache(IStatChannel channel, StatisticsCollector collector, bool cleanRareItems = true, IComparer <T> comparer = null, IEqualityComparer <T> eqcomparer = null, Action <Action> queueRebalance = null) : this(cleanRareItems, comparer, eqcomparer, queueRebalance) { _channel = channel; _collector = collector; _secondLevelCache.Channel = _channel; }
public SerialPoster([ImportMany] IEnumerable <IPacketResourcePoster> packetResourcePosters, IStatChannel statChannel, SettingsHolder settings, AppConfigProvider appConfigProvider ) { _packetResourcePosters = packetResourcePosters .Where(k => settings.Settings .ActivationSwitchMatch(k.GetType(), appConfigProvider)); _statChannel = statChannel; _statChannel.Register("Universal"); }
public SerialPoster([ImportMany]IEnumerable<IPacketResourcePoster> packetResourcePosters, IStatChannel statChannel, SettingsHolder settings, AppConfigProvider appConfigProvider ) { _packetResourcePosters = packetResourcePosters .Where(k => settings.Settings .ActivationSwitchMatch(k.GetType(), appConfigProvider)); _statChannel = statChannel; _statChannel.Register("Universal"); }
public CacheNode(TKey key, TValue element, int maxBranchDepth, IComparer <TKey> comparer, IStatChannel channel = null, Action <DateTime> decCount = null, Func <TValue, float> probabilityCalc = null) { _content = element; _maxFixedBranchDepth = maxBranchDepth; _comparer = comparer; _key = key; _decCount = decCount; _probabilityCalc = probabilityCalc; _channel = channel ?? new SecondLevelCache <TKey, TValue> .MockChannel(); }
#pragma warning restore 0649 internal void SetStatChannel(IStatChannel statChannel) { _statChannel = statChannel; }
public CurrentCachierStorage(IStatChannel channel, StatisticsCollector collector) : base(channel, collector) { }
public CurrentCachierStorageRef(IStatChannel channel, StatisticsCollector collector, CachierStorageSettings settings) : base(channel, collector, settings.KeepAllItems) { }