示例#1
0
        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);
        }
示例#2
0
        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;
              }
            }
        }
示例#3
0
 partial void ProcessEachChannelUnsubscribed(ChannelUnsubscribed notifies);
示例#4
0
 partial void PostChannelUnsubscribed(ChannelUnsubscribed msg);