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 {} }
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 {} }
internal ExecutorWorker(GExecutor executor, ThreadIdentifier ti) { _CurTi = ti; _executor = executor; }