private ICacheKeySource GetKeyFromSource(ControllerContext filterContext) { ICacheKeySource source; switch (_source) { case CacheKeySource.Request: source = new RequestCacheKeySource(filterContext.RequestContext); break; default: throw new ArgumentOutOfRangeException(); } return source; }
private ICacheKeySource GetKeyFromSource(ControllerContext filterContext) { ICacheKeySource source; switch (_source) { case CacheKeySource.Request: source = new RequestCacheKeySource(filterContext.RequestContext); break; default: throw new ArgumentOutOfRangeException(); } return(source); }