Хостінг об'єкта – програмна конфігурація
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
…………………….
//
Створюємо і реєструємо канал
IChannel
tcpChannel = new TcpChannel(8005);
ChannelServices.RegisterChannel(tcpChannel,
false);
//
Реєструємо об'єкт RemotingConfiguration.RegisterWellKnownServiceType(typeof(Multiplier), "Multiplier.rem",
WellKnownObjectMode.Singleton);
•