/// <summary> /// Registers with the correct services /// </summary> public void Register() { // "Activate" the NameService singleton. objectDirectory = (ObjectDirectory)Activator.GetObject(typeof(ObjectDirectory), wkst[0].ObjectUri); // Retreive the directory of messaging channels channelFactory = (IChannelFactory)objectDirectory.Resolve("ChannelFactory"); // Notify user of success RemoraOutput.WriteLine("Connection to Name Service Successful", OutputType.Remora); // get simulation if supposed to if (global::RemoraAdvanced.Properties.Settings.Default.SimMode) { this.simulatorFacade = (SimulatorFacade)objectDirectory.Resolve("SimulationServer"); // Notify user of success RemoraOutput.WriteLine("Connection to Simulation Service Successful", OutputType.Remora); } }
public static void Attach() { simFacade = (SimulatorFacade)OperationalInterface.ObjectDirectory.Resolve("SimulationServer"); }