Пример #1
0
        //public void SendMessage(JsonResult message)
        //{
        //    Clients.All.receive(message);
        //}
        //public void SendMessageChannel(string channelId, JsonResult message)
        //{
        //    BaseMessage msg = GetResultMessage();
        //    foreach (var client in clients.Where(x => x.ChannelId == channelId))
        //    {
        //        Clients.Client(client.ConnectionId).receive(msg);
        //    }
        //}

        #endregion public function

        #region private function

        private BaseMessage GetResultMessage()
        {
            List <BasePriceboardContent> list = new List <BasePriceboardContent>();

            list.Add(new BasePriceboardContent {
                Type = 1, Data = "ACB new info"
            });
            list.Add(new BasePriceboardContent {
                Type = 1, Data = "VCB new info"
            });
            list.Add(new BasePriceboardContent {
                Type = 2, Data = "Update HSX status"
            });

            return(SystemManager.CreateMessage(list));
        }