Sage.SageContext.SageContext C# (CSharp) Method

SageContext() public method

Initializes a new instance of the SageContext class, using the specified httpContext and categoryName.
public SageContext ( System.Web.HttpContextBase httpContext, string categoryName, ProjectConfiguration config = null ) : System
httpContext System.Web.HttpContextBase The current HTTP context.
categoryName string The category to set for this instance.
config Sage.Configuration.ProjectConfiguration The project configuration to use with this context instance.
return System
        public SageContext(HttpContextBase httpContext, string categoryName, ProjectConfiguration config = null)
            : this(httpContext, config)
        {
            this.Category = categoryName;
            pathMapper = httpContext.Server.MapPath;
        }

Same methods

SageContext::SageContext ( ControllerContext controllerContext, ProjectConfiguration config = null ) : System
SageContext::SageContext ( HttpContext httpContext, ProjectConfiguration config = null ) : System
SageContext::SageContext ( System.Web.HttpContextBase httpContext, string>.Func pathMapper, ProjectConfiguration config = null ) : System
SageContext::SageContext ( System.Web.HttpContextBase httpContext, ProjectConfiguration config = null ) : System
SageContext::SageContext ( System.Web.HttpContextBase httpContext, string categoryName, string>.Func pathMapper, ProjectConfiguration config = null ) : System
SageContext::SageContext ( System.Web.HttpContextBase httpContext, string categoryName, string localeName, ProjectConfiguration config = null ) : System
SageContext::SageContext ( SageContext context, ProjectConfiguration config = null, string>.Func pathMapper = null ) : System
SageContext::SageContext ( SageContext context, string categoryName, ProjectConfiguration config = null ) : System