CSharpRTMP.Core.Protocols.Cluster.SlaveClusterAppProtocolHandler.RegisterProtocol C# (CSharp) Méthode

RegisterProtocol() public méthode

public RegisterProtocol ( BaseProtocol protocol ) : void
protocol BaseProtocol
Résultat void
        public override void RegisterProtocol(BaseProtocol protocol)
        {
            OutboundCluster = protocol as OutboundClusterProtocol;
            foreach (var room in ClientApplicationManager.ApplicationByName.Values)
            {
                room.SOManager.RegisterProtocol(OutboundCluster);
            }
            while (_offlineTasks!=null)
            {
                _offlineTasks(OutboundCluster);
                _offlineTasks = null;
            }
        }