public override void ExecutePageHierarchy() { _cargoEngine = Startup.CargoEngine; _contentContext = new ContentContext { Locale = this.Culture, Location = this.VirtualPath.Replace("~", ""), EditingEnabled = true //Request.IsAuthenticated }; _cargoContent = _cargoEngine.GetContent(_contentContext); base.ExecutePageHierarchy(); }
public void ConfigureCargo(IAppBuilder app) { _cargoEngine = new MyCargoEngine(); app.UseCargo(_cargoEngine); }