CSharpRTMP.Core.Protocols.Rtmp.SOManager.RegisterProtocol C# (CSharp) Method

RegisterProtocol() public method

public RegisterProtocol ( BaseClusterProtocol protocol ) : void
protocol CSharpRTMP.Core.Protocols.Cluster.BaseClusterProtocol
return void
        public void RegisterProtocol(BaseClusterProtocol protocol)
        {
            foreach (var so in _sos.Values)
            {
                so.RegisterProtocol(protocol);
                protocol.SOs.Add(so);
                so.Track();
            }
        }
        public SO this[string name, bool persistent = false] => _sos.ContainsKey(name) ? _sos[name] : _sos[name] = new SO(Application, name, persistent);