private ViewEngineResult BuildResult(RequestContext requestContext, ISparkViewEntry entry)
        {
            var view = (IView)entry.CreateInstance();

            if (view is SparkView)
            {
                var sparkView = (SparkView)view;
                sparkView.ResourcePathManager = Engine.ResourcePathManager;
                sparkView.CacheService        = CacheServiceProvider.GetCacheService(requestContext);
            }
            return(new ViewEngineResult(view, this));
        }
Example #2
0
 public ICacheService GetCacheService()
 {
     return(_cacheServiceProvider.GetCacheService());
 }