Exemplo n.º 1
0
        protected void ApplyFilter(IFilter filter, Dictionary<string, object> parameters)
        {
            ScopeFilter sf = filter as ScopeFilter;
            if (sf != null)
            {
                Blog blog = Control.GetCurrentScope<Blog>(this);
                if (blog != null && !parameters.ContainsKey("ControllerID"))
                {
                    parameters.Add("ControllerID", blog.ID);

                    if (filter is ScopeFilter)
                    {
                        this.Page.SetCacheDependency(blog);
                    }
                }
            }
            else
            {
                filter.Before(parameters);
            }
        }