Flatwhite.WebApi.OutputCacheAttribute.GetInvocationContext C# (CSharp) Method

GetInvocationContext() protected method

Get context data from HttpActionContext
protected GetInvocationContext ( System.Web.Http.Controllers.HttpActionContext actionContext ) : object>.IDictionary
actionContext System.Web.Http.Controllers.HttpActionContext
return object>.IDictionary
        protected virtual IDictionary<string, object> GetInvocationContext(HttpActionContext actionContext)
        {
            var provider = new WebApiContextProvider(actionContext);
            var context = provider.GetContext();
            context[Global.__flatwhite_outputcache_attribute] = this;
            context[WebApiExtensions.__webApi_dependency_scope] = actionContext.Request.GetDependencyScope();
            return context;
        }