示例#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);
        }
 public abstract void Unsubscribe(SubKey sk);