public RemoteConnectLib()
        {
            _Disposed = false;

            _CurrentUrlAddress        = string.Empty;
            _CurrentUserID            = string.Empty;
            _CurrentPassword          = string.Empty;
            _CurrentNetTcpConnectFlag = false;
            _ConnectLockObject        = new object();
            _BusyConnecting           = false;

            _BladeEventCallbackClass = new TesterObjectCallback(this);
        }
예제 #2
0
        public RemoteConnectLib()
        {
            Microsoft.VisualBasic.Devices.Computer computer = new Microsoft.VisualBasic.Devices.Computer();
            _OurName = computer.Name;

            _Disposed = false;

            _Factory                  = null;
            _CurrentUrlAddress        = string.Empty;
            _CurrentUserID            = string.Empty;
            _CurrentPassword          = string.Empty;
            _CurrentNetTcpConnectFlag = false;
            _ConnectLockObject        = new object();
            _BusyConnecting           = false;

            _BladeEventCallbackClass = new TesterObjectCallback(this);
            _BladeEvent = new BladeEventClass(this);

            // After connected, timer pings host every now and then to keep the channel awake.
            _KeepAliveTimer   = new System.Threading.Timer(keepAliveTimer_Tick, null, Timeout.Infinite, Timeout.Infinite);
            _KeepAliveArrived = true;
        }