private bool ChannelUnsubscribeFun(ChannelUnsubscribed msg) { var goneClients = Clients.Values.Where(client => client.Channel == msg.ChannelId).ToArray(); foreach (var clid in goneClients) { Clients.Remove(clid.Id); } return(false); }
public void UpdateChannelUnsubscribed(ChannelUnsubscribed msg) { var obj = GetChannel(msg.ChannelId); if (obj == null) { Log.Warn("Internal Book protocol error. Update 'ChannelUnsubscribed' has no local object ({$msg})", msg); return; } { var tmpv = ChannelUnsubscribeFun(msg); if (tmpv != null) { obj.Subscribed = (bool)tmpv; } } }
partial void ProcessEachChannelUnsubscribed(ChannelUnsubscribed notifies);
partial void PostChannelUnsubscribed(ChannelUnsubscribed msg);