internal void Unsubscribe(SubKey sk) { foreach (var channel in this._channels.Values) { channel.Unsubscribe(sk); } }
internal void Unsubscribe(SubKey sk, string channelName) { if (this._channels.TryGetValue(channelName, out var channel)) { channel.Unsubscribe(sk); } }
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);