Ignore:
Timestamp:
Apr 28, 2016, 9:49:25 AM (8 years ago)
Author:
Faisal Sami
Message:

BSDX Scheduling changes for version 2.0.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs

    r1728 r1731  
    390390                //path = path.Substring(0, path.LastIndexOf('\\'));
    391391                path = path + '\\' + "Putty\\putty.exe";
     392               
    392393                if (System.IO.File.Exists(path))
    393394                {
     
    920921            setProgressDelegate(21);
    921922            _current.RemoteSession.EventServices.Subscribe("BSDX ADMIN SHUTDOWN");
    922 
    923                         _current.RemoteSession.EventServices.EventPollingInterval = 5000; //in milliseconds
    924                         _current.RemoteSession.EventServices.IsEventPollingEnabled = true;
     923                       
     924            string result = _current.RemoteSession.TransmitRPC("VEFA GET BMX POLL INTERVAL","");
     925            bool eventPoolEnabled = false;
     926            if (result.Split('^')[0] == "1")
     927            {
     928                eventPoolEnabled = true;
     929            }
     930            int eventPoolInterval = Convert.ToInt32(result.Split('^')[1]);
     931            _current.RemoteSession.EventServices.EventPollingInterval = (eventPoolInterval * 1000); //in milliseconds
     932                        _current.RemoteSession.EventServices.IsEventPollingEnabled = eventPoolEnabled;           
    925933                       
    926934            //PORT TODO: No Autofire in BMX 4.0
Note: See TracChangeset for help on using the changeset viewer.