private void SendCommandLineArgs(string[] args) { try { IpcClientChannel channel = new IpcClientChannel(); ChannelServices.RegisterChannel(channel, false); RemotingConfiguration.RegisterActivatedClientType(typeof(RemotableObject), "ipc://pvp"); RemotableObject proxy = new RemotableObject(); proxy.BringToFront(_appGuid); proxy.ProcessArguments(_appGuid, args); } catch { // log it } }
private void SendCommandLineArgs(string[] args) { try { IpcClientChannel channel = new IpcClientChannel(); ChannelServices.RegisterChannel(channel, false); RemotingConfiguration.RegisterActivatedClientType(typeof(RemotableObject), "ipc://pvp"); RemotableObject proxy = new RemotableObject(); proxy.BringToFront(_appGuid); proxy.ProcessArguments(_appGuid, args); } catch (Exception ex) { LOG.Error(ex, "{0} caused a(n) {1}", MethodBase.GetCurrentMethod().Name, ex.GetType().Name); } }