public void Initialize(Engine.IEngine engine)
        {
            var routes      = engine.Resolve <IProvider <RouteCollection> >().Get();
            var viewEngines = engine.Resolve <IProvider <ViewEngineCollection> >().Get();

            RegisterArea(routes, viewEngines, engine);
        }
Beispiel #2
0
 public void Initialize(Engine.IEngine engine)
 {
     if (engine.Config.Sections.Web.Tokens.BuiltInEnabled)
     {
         var viewEngines = engine.Resolve <IProvider <ViewEngineCollection> >().Get();
         viewEngines.RegisterTokenViewEngine();
     }
 }
Beispiel #3
0
        public virtual void Initialize(Engine.IEngine engine)
        {
            if (InitializerType == null)
            {
                throw new ArgumentNullException("InitializerType");
            }

            CreateInitializer().Initialize(engine);
        }
 public QueryDataSourceView(Engine.IEngine engine, IDataSource owner, string viewName, N2.Persistence.Finder.IQueryEnding query)
     : base(engine, owner, viewName)
 {
     this.query = query;
 }
 public ContextBuilder(Engine.IEngine engine)
 {
     this.engine = engine;
 }
 public ChildrenDataSourceView(Engine.IEngine engine, IDataSource owner, string viewName, ContentItem parentItem)
     : base(engine, owner, viewName)
 {
     this.parentItem = parentItem;
 }
Beispiel #7
0
 public UploadFile(Engine.IEngine engine)
 {
     this.engine = engine;
 }
Beispiel #8
0
 public ContextBuilder(Engine.IEngine engine)
 {
     this.engine = engine;
 }
Beispiel #9
0
 public UploadFile(Engine.IEngine engine)
 {
     this.engine = engine;
 }
Beispiel #10
0
 public ItemDataSourceView(Engine.IEngine engine, IDataSource owner, string viewName)
     : base(owner, viewName)
 {
     this.engine = engine;
 }
 public ItemDataSourceView(Engine.IEngine engine, IDataSource owner, string viewName)
     : base(owner, viewName)
 {
     this.engine = engine;
 }
Beispiel #12
0
 public void Initialize(Engine.IEngine engine)
 {
     engine.AddComponent("n2.linkTracker", typeof(Tracker));
 }
        public void Initialize(Engine.IEngine engine)
        {
            var viewEngines = engine.Resolve <IProvider <ViewEngineCollection> >().Get();

            viewEngines.RegisterTokenViewEngine();
        }
Beispiel #14
0
 public void Initialize(Engine.IEngine engine)
 {
     engine.AddComponent("n2.trash", typeof(ITrashHandler), typeof(TrashHandler));
     engine.AddComponent("n2.deleteInterceptor", typeof(DeleteInterceptor));
 }