CSharpRTMP.Core.Protocols.Rtmfp.Publication.ClosePublisher C# (CSharp) Метод

ClosePublisher() публичный Метод

public ClosePublisher ( string code, string description ) : void
code string
description string
Результат void
        public void ClosePublisher(string code,string description)
        {
            if (PublisherId == 0)
            {
                return;
            }
            if (_controller != null)
            {
                if (!string.IsNullOrEmpty(code)) _controller.WriteStatusResponse(code, description);
                _controller.WriteAMFMessage("close");
            }
            else
            {
                Logger.WARN("Publisher {0} has no controller to close it", PublisherId);
            }
        }