public ActivatorClient(string guid, ProcessDomainSetup setup)
{
var serverProvider = new BinaryServerFormatterSinkProvider { TypeFilterLevel = setup.TypeFilterLevel };
var clientProvider = new BinaryClientFormatterSinkProvider();
var properties = new Hashtable();
properties["portName"] = string.Format(ActivatorHost.ClientChannelName, guid);
properties["name"] = string.Format(ActivatorHost.ClientChannelName, guid);
setup.Remoting.ApplyClientProperties(properties);
_channel = new IpcChannel(properties, clientProvider, serverProvider);
ChannelServices.RegisterChannel(_channel, false);
_activator = (Activator)System.Activator.GetObject(typeof(Activator), string.Format("ipc://{0}/{1}", string.Format(ActivatorHost.ServerChannelName, guid), ActivatorHost.ActivatorName));
}