Пример #1
0
 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;
 }
Пример #2
0
 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");
 }
Пример #3
0
 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");
 }
Пример #4
0
 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();
 }
Пример #5
0
#pragma warning restore 0649

        internal void SetStatChannel(IStatChannel statChannel)
        {
            _statChannel = statChannel;
        }
Пример #6
0
#pragma warning restore 0649    

        internal void SetStatChannel(IStatChannel statChannel)
        {
            _statChannel = statChannel;
        }
Пример #7
0
 public CurrentCachierStorage(IStatChannel channel, StatisticsCollector collector)
     : base(channel, collector)
 {
 }
Пример #8
0
 public CurrentCachierStorageRef(IStatChannel channel, StatisticsCollector collector, CachierStorageSettings settings)
     : base(channel, collector, settings.KeepAllItems)
 {
 }