public IGRequestProcessing(IGRequest request, IGServer server)
 {
     m_server = server;
     m_request = request;
     m_xmlNodeRequest = m_request.GetXmlNode();
     XmlNode xmlNodeTypeId = request.GetAttribute(IGRequest.IGREQUEST_NODETYPE);
     if (xmlNodeTypeId != null)
         m_nTypeId = Convert.ToInt32(xmlNodeTypeId.Value);
     XmlNode xmlNodeReqId = request.GetAttribute(IGRequest.IGREQUEST_NODEID);
     if (xmlNodeReqId != null)
         m_nReqId = Convert.ToInt32(xmlNodeReqId.Value);
     XmlNode xmlNodeGuid = request.GetAttribute(IGRequest.IGREQUEST_GUID);
     if (xmlNodeGuid != null)
         m_sGuid = xmlNodeGuid.Value;
     XmlNode xmlNodeUser = request.GetParameter(IGRequest.IGREQUEST_USERLOGIN);
     if (xmlNodeUser != null)
         m_sUser = xmlNodeUser.Value;
     XmlNode xmlNodeFrameId = request.GetParameter(IGRequest.IGREQUEST_FRAMEID);
     if (xmlNodeFrameId != null)
         m_sFrameId = xmlNodeFrameId.Value;
     m_nProgressTime = DateTime.UtcNow.Ticks;
     m_nProgress = 0;
     m_eStatus = IGSMStatusUser.IGState.IGSMSTATUS_WORKING;
     m_timer = new System.Timers.Timer();
     m_timer.Elapsed += new ElapsedEventHandler(OnSurveyProcessingEvent);
     m_timer.Interval = HC.IGREQPROC_PROGRESS_CHECKTIME;
     m_timer.Start();
 }
 public static void Add(IGRequest request, IGServer server)
 {
     if (request.GetId() == IGRequest.IGREQUEST_WORKSPACE_DISCONNECT)
     {
         // server does not wait for a disconnection answer
         IGServerManager.Instance.AppendInfo("To server " + server.ToString() + ": Disconnecting User Request " + request.ToString());
         return;
     }
     else
     {
         if (!request.Silent)
             IGServerManager.Instance.AppendInfo("To server " + server.ToString() + ": Processing Request " + request.ToString());
         s_lProcessingRequests.Add(new IGRequestProcessing(request, server));
     }
 }
 public IGConnectionRemote(IGServer igServer)
     : base(igServer)
 {
 }
 public IGConnectionLocal(IGServer igServer)
     : base(igServer)
 {
     m_status = new IGSMStatusUser();
     m_lsImages = new List<string>();
 }
 private IGPERequestSender(IPEndPoint endPoint)
 {
     m_server = IGConfigManagerRemote.GetInstance().GetServer(endPoint.Address.ToString(), endPoint.Port);
 }
 private IGPERequestSender(string sServerName)
 {
     m_sServerName = sServerName;
     IPEndPoint endPt = IGConfigManagerRemote.GetInstance().GetServerEndPoint(m_sServerName);
     m_server = IGConfigManagerRemote.GetInstance().GetServer(endPt.Address.ToString(), endPt.Port);
 }
示例#7
0
 public IGConnection(IGServer igServer)
 {
     m_serverMgr = IGServerManager.Instance;
     m_igServer = igServer;
 }