/// <summary> /// Stop this service. /// </summary> protected override void OnStop() { ChannelServices.UnregisterChannel(channel); channel = null; mediaServer.Dispose(); mediaServer = null; }
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; }