public CmsContext(CmsContextType type)
 {
     Type = type;
     Language = System.Threading.Thread.CurrentThread.CurrentUICulture.Name;
     _storeType = Type == CmsContextType.Editing ? CmsStoreType.Working : CmsStoreType.Published;
     GetStack().Push(this);
 }
 public CmsContext(CmsContextType type, string path, string sitepath, string language)
 {
     Type = type;
     Path = path;
     SitePath = sitepath;
     Language = language;
     _storeType = Type == CmsContextType.Editing ? CmsStoreType.Working : CmsStoreType.Published;
 }
 public CmsContext(CmsContextType type, string language)
 {
     Type = type;
     Language = language;
     _storeType = Type == CmsContextType.Editing ? CmsStoreType.Working : CmsStoreType.Published;
 }
 public static CmsContext CloneAs(CmsContextType type)
 {
     var current = CmsContext.Current;
     return new CmsContext(type) { Path = current.Path, Language = current.Language, SitePath = current.SitePath };
 }