示例#1
0
        private static Guid FindApplicationEufGuid(P2PApplication p2pApp)
        {
            foreach (List <P2PApp> apps in p2pAppCache.Values)
            {
                foreach (P2PApp app in apps)
                {
                    if (app.AppType == p2pApp.GetType())
                    {
                        return(app.EufGuid);
                    }
                }
            }

            return(Guid.Empty);
        }
示例#2
0
        private static uint FindApplicationId(P2PApplication p2pApp)
        {
            foreach (List <P2PApp> apps in p2pAppCache.Values)
            {
                foreach (P2PApp app in apps)
                {
                    if (app.AppType == p2pApp.GetType())
                    {
                        return(app.AppId);
                    }
                }
            }

            return(0);
        }
示例#3
0
        private static uint FindApplicationId(P2PApplication p2pApp)
        {
            foreach (List<P2PApp> apps in p2pAppCache.Values)
            {
                foreach (P2PApp app in apps)
                    if (app.AppType == p2pApp.GetType())
                        return app.AppId;
            }

            return 0;
        }
示例#4
0
        private static Guid FindApplicationEufGuid(P2PApplication p2pApp)
        {
            foreach (List<P2PApp> apps in p2pAppCache.Values)
            {
                foreach (P2PApp app in apps)
                    if (app.AppType == p2pApp.GetType())
                        return app.EufGuid;
            }

            return Guid.Empty;
        }