Пример #1
0
        public void Connect(string userName, string email)
        {
            emailIDLoaded = email;
            var   id    = Context.ConnectionId;
            SChat schat = new SChat();

            schat.Connect(userName, email, Clients, id);
        }
Пример #2
0
        public override System.Threading.Tasks.Task  OnDisconnected(bool stopCalled)
        {
            //using (DB_102707_zonaflEntities dc = new DB_102707_zonaflEntities())
            //{



            SChat schat = new SChat();

            return(schat.DisConnect(stopCalled, Context, Clients));
        }
Пример #3
0
        public List <PrivateChatMessage> GetScrollingChatData(string fromid, string toid, int start = 10, int length = 1)
        {
            SChat schat = new SChat();

            return(schat.GetScrollingChatData(fromid, toid, start, length));
        }
Пример #4
0
        public List <PrivateChatMessage> GetPrivateMessage(string fromid, string toid, int take)
        {
            SChat schat = new SChat();

            return(schat.GetPrivateMessage(fromid, toid, take));
        }
Пример #5
0
        public void SendPrivateMessage(string toUserId, string message, string status)
        {
            SChat schat = new SChat();

            schat.SendPrivateMessage(toUserId, message, status, Clients, Context);
        }
Пример #6
0
        public void SendMessageToAll(string userName, string message)
        {
            SChat schat = new SChat();

            schat.SendMessageToAll(userName, message, Clients);
        }