Esempio n. 1
0
 public void Register( IAppHost appHost )
 {
     this.AppHost = appHost;
     this.ViewManager = new ViewManager( appHost, this.ViewConfig );
     this.BuildManager = new BuildManager( appHost, this.BuildConfig );
     this.PageResolver = new PageResolver( appHost, this.ResolveConfig, this.ViewManager, this.BuildManager );
 }
Esempio n. 2
0
        public void Register(IAppHost appHost)
        {
            if (Instance != null)
            {
                Log.Warn("RazorFormat plugin should only be registered once");
                return;
            }

            Instance = this;

            this.AppHost = appHost;
            this.ViewManager = new ViewManager(appHost, this.ViewConfig);
            this.BuildManager = new BuildManager(appHost, this.BuildConfig);
            this.PageResolver = new PageResolver(appHost, this.ResolveConfig, this.ViewManager, this.BuildManager);
        }