public static void Start() { channel = ServerUtilities.GetTcpChannel("Agency" + "Channel", port, 100); Instance = new RemoteAgency(); RemotingServices.Marshal(Instance, "Agency"); ChannelDataStore store = channel.ChannelData as ChannelDataStore; Url = store.ChannelUris[0]; System.Diagnostics.Trace.WriteLine("RemoteAgency\t listen at:" + Url); ProccessGuard.LaunchAgentProcess(); }
public static void Start() { channel = ServerUtilities.GetTcpChannel("Agency" + "Channel", port, 100); Instance = new RemoteAgency(); RemotingServices.Marshal(Instance, "Agency"); ChannelDataStore store = channel.ChannelData as ChannelDataStore; Url = store.ChannelUris[0]; System.Diagnostics.Trace.WriteLine("RemoteAgency\t listen at:" + Url); ProccessGuard.LaunchAgentProcess(); }