コード例 #1
0
        // Sending a Payload from server to client expecting an answer, server initiated the request
        public NewPayLoad SendPayLoad(Guid sessionID, NewPayLoad pL)
        {
            GingerSocketInfo c = (from x in Clients where x.SessionID == sessionID select x).SingleOrDefault();

            if (c == null)
            {
                throw new InvalidOperationException("SendPayLoad, SessionId not found: " + sessionID);
            }
            pL.PaylodType = NewPayLoad.ePaylodType.RequestPayload;
            return(c.SendRequest(pL));
        }
コード例 #2
0
 public NewPayLoad SendRequestPayLoad(NewPayLoad pl)
 {
     pl.PaylodType = NewPayLoad.ePaylodType.RequestPayload;
     return(mGingerSocketInfo.SendRequest(pl));
 }