protected virtual void OnLaunchInfoReceived(LaunchInfo launchInfo) { if (LaunchInfoReceived != null) { LaunchInfoReceived(this, new LaunchInfoReceivedEventArgs(launchInfo)); } }
protected virtual void OnLaunchInfoReceived(LaunchInfo launchInfo) { if (LaunchInfoReceived != null) { LaunchInfoReceived(this, new LaunchInfoReceivedEventArgs(launchInfo)); } }
public void SendLaunchInfoToFirstInstance(LaunchInfo launchInfo) { if (IsFirstInstance) { throw new InvalidOperationException(); } IpcClientChannel channel = new IpcClientChannel(ApplicationId, null); ChannelServices.RegisterChannel(channel, true); IFirstInstanceServer server = (IFirstInstanceServer) Activator.GetObject(typeof (IFirstInstanceServer), string.Format("ipc://{0}/{0}", ApplicationId)); server.ProcessLaunchInfo(launchInfo); }
public void SendLaunchInfoToFirstInstance(LaunchInfo launchInfo) { if (IsFirstInstance) { throw new InvalidOperationException(); } IpcClientChannel channel = new IpcClientChannel(ApplicationId, null); ChannelServices.RegisterChannel(channel); IFirstInstanceServer server = (IFirstInstanceServer) Activator.GetObject(typeof(IFirstInstanceServer), string.Format("ipc://{0}/{0}", ApplicationId)); server.ProcessLaunchInfo(launchInfo); }
public LaunchInfoReceivedEventArgs(LaunchInfo launchInfo) { LaunchInfo = launchInfo; }
void IFirstInstanceServer.ProcessLaunchInfo(LaunchInfo launchInfo) { OnLaunchInfoReceived(launchInfo); }
public LaunchInfoReceivedEventArgs(LaunchInfo launchInfo) { LaunchInfo = launchInfo; }
void IFirstInstanceServer.ProcessLaunchInfo(LaunchInfo launchInfo) { OnLaunchInfoReceived(launchInfo); }