Esempio n. 1
0
        public IoCache(CachedChannel <TPacket> cachedChannel, IEnumerable <ICachePolicy <TPacket> > cachePolicies)
        {
            packetIndex = 0;
            PacketCacheInfoCollection = new ObservableCollection <PacketCacheInfo <TPacket> >();
            Channel = cachedChannel;
            foreach (var cachePolicy in cachePolicies)
            {
                cachePolicy.Bind(this);
            }

            Channel.DataReceived += OnDataReceived;
        }
Esempio n. 2
0
 internal ChannelCreatedEventArgs(CachedChannel channel) : base(channel.Client)
 {
     Channel = channel;
 }
Esempio n. 3
0
 internal ChannelUpdatedEventArgs(CachedChannel oldChannel, CachedChannel newChannel) : base(newChannel.Client)
 {
     OldChannel = oldChannel;
     NewChannel = newChannel;
 }