CSharpRTMP.Core.Protocols.Cluster.SlaveClusterAppProtocolHandler.RegisterProtocol C# (CSharp) Method

RegisterProtocol() public method

public RegisterProtocol ( BaseProtocol protocol ) : void
protocol BaseProtocol
return 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;
            }
        }