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; }
internal ChannelCreatedEventArgs(CachedChannel channel) : base(channel.Client) { Channel = channel; }
internal ChannelUpdatedEventArgs(CachedChannel oldChannel, CachedChannel newChannel) : base(newChannel.Client) { OldChannel = oldChannel; NewChannel = newChannel; }