// 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)); }
public NewPayLoad SendRequestPayLoad(NewPayLoad pl) { pl.PaylodType = NewPayLoad.ePaylodType.RequestPayload; return(mGingerSocketInfo.SendRequest(pl)); }