Ejemplo n.º 1
0
    public System.Web.Caching.CacheDependency[] GetDependencies()
    {
        CmsSiteMapProvider provider = SiteMap.Provider as CmsSiteMapProvider;

        if (provider != null)
        {
            return(new System.Web.Caching.CacheDependency[] { provider.CloneCacheDependency() });
        }
        return(null);
    }
Ejemplo n.º 2
0
    public System.Web.Caching.CacheDependency[] GetDependencies()
    {
        CmsSiteMapProvider provider = null;

        if (!String.IsNullOrEmpty(this.SiteMapDataSource1.SiteMapProvider))
        {
            provider = SiteMap.Providers[this.SiteMapDataSource1.SiteMapProvider] as CmsSiteMapProvider;
        }
        else
        {
            provider = SiteMap.Provider as CmsSiteMapProvider;
        }
        if (provider != null)
        {
            return(new System.Web.Caching.CacheDependency[] { provider.CloneCacheDependency() });
        }
        return(null);
    }