Пример #1
0
        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();
        }
Пример #2
0
 public void ConfigureCargo(IAppBuilder app)
 {
     _cargoEngine = new MyCargoEngine();
     app.UseCargo(_cargoEngine);
 }