Exemplo n.º 1
0
        public bool IsSessionService(string pluginId, string serviceId)
        {
            PluginPackage     pluginPackage     = (from x in mPluginPackages where x.PluginId == pluginId select x).SingleOrDefault();
            PluginServiceInfo pluginServiceInfo = pluginPackage.GetService(serviceId);

            return(pluginServiceInfo.IsSession);
        }
Exemplo n.º 2
0
        public bool IsSessionService(string pluginId, string serviceId)
        {
            string key = pluginId + "." + serviceId;
            bool   isSession;
            bool   bFound = PluginServiceIsSeesionDictionary.TryGetValue(key, out isSession);

            if (bFound)
            {
                return(isSession);
            }

            PluginPackage     pluginPackage     = (from x in mPluginPackages where x.PluginId == pluginId select x).SingleOrDefault();
            PluginServiceInfo pluginServiceInfo = pluginPackage.GetService(serviceId);

            if (pluginServiceInfo != null)
            {
                PluginServiceIsSeesionDictionary.Add(key, pluginServiceInfo.IsSession);
                return(pluginServiceInfo.IsSession);
            }
            else
            {
                throw new Exception("IsSessionService Error: pluginServiceInfo not found for: " + pluginId + "." + serviceId);
            }
        }