Beispiel #1
0
        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();
        }
Beispiel #2
0
 public static void Stop()
 {
     ProccessGuard.Release();
     ServerUtilities.SafeReleaseChannel(channel);
 }