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

GetAppId() public method

public GetAppId ( string appName ) : uint
appName string
return uint
        public uint GetAppId(string appName)
        {
            if (Application.SOManager["appList"][appName] == null)
            {
                if (OutboundCluster != null)
                {
                    Logger.INFO("GetAppId:" + appName);
                    OutboundCluster.Send(ClusterMessageType.GetAppId, o => o.Write(appName));
                }
                else
                {
                    if (_offlineTasks == null)
                        _offlineTasks = x => x.Send(ClusterMessageType.GetAppId, o => o.Write(appName));
                    else
                        _offlineTasks += x => x.Send(ClusterMessageType.GetAppId, o => o.Write(appName));
                }
                return 0;
            }
            return Application.SOManager["appList"][appName];
        }
        public override void PublishStream(uint appId, IInStream inStream,string type="live")