コード例 #1
0
        public override ResponseMessage PerformService(Scope <object> clientSessionScope)
        {
            var sessionManagerMap =
                (DictionaryList <object, WebSocketClientSessionManager>)
                clientSessionScope.Get(SessionObjects.SessionsMap);

            var sessionId = (string)clientSessionScope.Get(SessionObjects.SessionId);

            var update = new TestServiceUpdate(message, sessionId);

            foreach (WebSocketClientSessionManager client in sessionManagerMap.Values)
            {
                client.SendUpdateToClient(update, client.SessionId);
            }

            return(new TestServiceResponse(TestServiceConstants.ServicePrefix + message));
        }
コード例 #2
0
 public void OnReceiveUpdate(TestServiceUpdate response)
 {
     //throw new NotImplementedException();
 }