TradeBot/TradeBotHost.cs

21 lines
376 B
C#
Raw Permalink Normal View History

2017-11-23 13:00:44 +01:00
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);
}
}
}