示例#1
0
        public void Exit()
        {
            PuppetMaster.GetInstance().Log("Killing " + _url);
            IRemoteCmdInterface remoteObj = (IRemoteCmdInterface)Activator.GetObject(
                typeof(IRemoteCmdInterface),
                _url);

            remoteObj.Crash();
        }
示例#2
0
        public void Interval(int ms)
        {
            IRemoteCmdInterface remoteObj = (IRemoteCmdInterface)Activator.GetObject(
                typeof(IRemoteCmdInterface),
                _url);

            _methodRan = "Interval";
            RemoteAsyncArgsDelegate RemoteDel      = new RemoteAsyncArgsDelegate(remoteObj.Interval);
            AsyncCallback           RemoteCallback = new AsyncCallback(this.OnRemoteCallback);
            // Call remote method
            IAsyncResult RemAr = RemoteDel.BeginInvoke(ms, RemoteCallback, null);
        }
示例#3
0
        public void Freeze()
        {
            IRemoteCmdInterface remoteObj = (IRemoteCmdInterface)Activator.GetObject(
                typeof(IRemoteCmdInterface),
                _url);

            _methodRan = "Freeze";
            RemoteAsyncNoArgsDelegate RemoteDel      = new RemoteAsyncNoArgsDelegate(remoteObj.Freeze);
            AsyncCallback             RemoteCallback = new AsyncCallback(this.OnRemoteCallback);
            // Call remote method
            IAsyncResult RemAr = RemoteDel.BeginInvoke(RemoteCallback, null);
        }