Changeset 2769


Ignore:
Timestamp:
7/3/2012 4:34:51 AM (22 months ago)
Author:
lowjoel
Message:

Allow the client to shut down the server remotely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/EraserService/Eraser.Manager/RemoteExecutor.cs

    r2768 r2769  
    204204                //Create an instance of the remote object. 
    205205                Task task2 = new Task(); 
    206                 Client = (DirectExecutor)Activator.GetObject(typeof(DirectExecutor), 
     206                Client = (RemoteExecutorServer)Activator.GetObject(typeof(RemoteExecutorServer), 
    207207                    string.Format(CultureInfo.InvariantCulture, "ipc://{0}/{1}", 
    208208                        RemoteExecutorServer.ServerName, RemoteExecutorServer.ExecutorName)); 
     
    262262 
    263263        /// <summary> 
     264        /// This will tell the server process to exit. As such, this client connection will be 
     265        /// invalid after this call. 
     266        /// </summary> 
     267        public void Exit() 
     268        { 
     269            Client.Dispose(); 
     270            Dispose(); 
     271        } 
     272 
     273        /// <summary> 
    264274        /// Checks whether the executor instance has connected to a server. 
    265275        /// </summary> 
Note: See TracChangeset for help on using the changeset viewer.