コード例 #1
0
ファイル: ScreenSaverForm.cs プロジェクト: cucacutexice/AIGA
        private void ScreenSaverForm_Load(object sender, System.EventArgs e)
        {
            this.Bounds = Screen.AllScreens[ScreenNumber].Bounds;
            Cursor.Hide();
            TopMost = true;

            try
            {
                // get executor configuration
                RegistryKey   key    = Registry.LocalMachine.OpenSubKey("Software\\Alchemi\\Executor");
                Configuration config = Configuration.GetConfiguration(key.GetValue("InstallLocation").ToString());

                // get reference to local executor
                Executor = (GExecutor)GNode.GetRemoteRef(new RemoteEndPoint(
                                                             "localhost",
                                                             config.OwnPort,
                                                             RemotingMechanism.TcpBinary
                                                             ));

                // start non-dedicated executing
                Executor.PingExecutor();
                Executor.StartNonDedicatedExecuting(5000);
            }
            catch {}
        }
コード例 #2
0
        private void ScreenSaverForm_Load(object sender, System.EventArgs e)
        {
            this.Bounds = Screen.AllScreens[ScreenNumber].Bounds;
            Cursor.Hide();
            TopMost = true;

            try
            {
                // get executor configuration
                RegistryKey key = Registry.LocalMachine.OpenSubKey("Software\\Alchemi\\Executor");
                Configuration config = Configuration.GetConfiguration(key.GetValue("InstallLocation").ToString());

                // get reference to local executor
                Executor = (GExecutor) GNode.GetRemoteRef(new RemoteEndPoint(
                    "localhost",
                    config.OwnPort,
                    RemotingMechanism.TcpBinary
                    ));

                // start non-dedicated executing
                Executor.PingExecutor();
                Executor.StartNonDedicatedExecuting(5000);
            }
            catch {}
        }
コード例 #3
0
ファイル: ExecutorWorker.cs プロジェクト: bluetsys/alchemi
 internal ExecutorWorker(GExecutor executor, ThreadIdentifier ti)
 {
     _CurTi    = ti;
     _executor = executor;
 }