/// <summary>
 /// Stop this service.
 /// </summary>
 protected override void OnStop()
 {
     ChannelServices.UnregisterChannel(channel);
     channel = null;
     mediaServer.Dispose();
     mediaServer = null;
 }
Exemplo n.º 2
0
        public static bool DoesChannelExist(string ChannelName)
        {
            bool RetVal = false;

            System.Runtime.Remoting.Channels.IChannel OldChannel = ChannelServices.GetChannel(ChannelName);
            if (OldChannel != null)
            {
                RetVal = true;
            }

            return(RetVal);
        }
 /// <summary>
 /// Stop this service.
 /// </summary>
 protected override void OnStop()
 {
     ChannelServices.UnregisterChannel(channel);
     channel = null;
     mediaServer.Dispose();
     mediaServer = null;
 }