Пример #1
0
 internal void Unsubscribe(SubKey sk)
 {
     foreach (var channel in this._channels.Values)
     {
         channel.Unsubscribe(sk);
     }
 }
Пример #2
0
 internal void Unsubscribe(SubKey sk, string channelName)
 {
     if (this._channels.TryGetValue(channelName, out var channel))
     {
         channel.Unsubscribe(sk);
     }
 }
Пример #3
0
        internal void Subscribe <TValue>(SubKey sk, string channelName, Action <TValue> handler)
        {
            var channel = this.GetOrCreateChannel <TValue>(channelName);

            channel.Subscribe(sk, handler);
        }
Пример #4
0
 public abstract void Unsubscribe(SubKey sk);