using System; using System.Runtime.Remoting.Channels.Ipc; using System.Runtime.Remoting.Channels; namespace TradeBot { public class TradeBotHost : MarshalByRefObject { IpcChannel ipcChannel; public TradeBotHost(string hostID) { ipcChannel = new IpcChannel(String.Format("bot.host.{0}",hostID)); ChannelServices.RegisterChannel(ipcChannel,true); } } }