CSharpRTMP.Core.Streaming.StreamsManager.UnRegisterStreams C# (CSharp) Method

UnRegisterStreams() public method

public UnRegisterStreams ( uint protocolId ) : void
protocolId uint
return void
        public void UnRegisterStreams(uint protocolId)
        {
#if PARALLEL
            FindByProtocolId(protocolId).AsParallel().ForAll(x=>UnRegisterStream(x.Value));
#else
            foreach (var baseStream in FindByProtocolId(protocolId).Values.ToArray())
                UnRegisterStream(baseStream);
#endif
        }