Sage.SageContext.SageContext C# (CSharp) Method

SageContext() public method

Initializes a new instance of the SageContext class, using an existing context instance.
public SageContext ( SageContext context, ProjectConfiguration config = null, string>.Func pathMapper = null ) : System
context SageContext An existing to use to initialize this instance.
config Sage.Configuration.ProjectConfiguration The project configuration to use with this context instance.
pathMapper string>.Func The function to use for resolving relative paths.
return System
        public SageContext(SageContext context, ProjectConfiguration config = null, Func<string, string> pathMapper = null)
            : this(context, context.Category, config)
        {
            if (pathMapper != null)
                this.pathMapper = pathMapper;
        }

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, ProjectConfiguration config = null ) : System
SageContext::SageContext ( System.Web.HttpContextBase httpContext, string categoryName, string localeName, ProjectConfiguration config = null ) : System
SageContext::SageContext ( SageContext context, string categoryName, ProjectConfiguration config = null ) : System