public override void SetUp()
        {
            base.SetUp();

            ContentAdapterProvider provider = new ContentAdapterProvider(new ContentEngine(new MediumTrustServiceContainer(), EventBroker.Instance, new ContainerConfigurer()), new AppDomainTypeFinder());
            provider.Start();
            dispatcher = new RequestPathProvider(webContext, parser, new FakeErrorHandler(), hostSection);
        }
 public LinkFixupScheduledAction(IItemFinder finder, IPersister persister, IHost host, IFileSystem fs, IEngine engine)
 {
     _finder = finder;
     _persister = persister;
     _host = host;
     _fs = fs;
     _rpp = engine.Resolve<RequestPathProvider>();
 }
예제 #3
0
 /// <summary>Creates a new instance of the RequestLifeCycleHandler class.</summary>
 /// <param name="webContext">The web context wrapper.</param>
 /// <param name="broker"></param>
 /// <param name="dispatcher"></param>
 /// <param name="adapters"></param>
 /// <param name="errors"></param>
 /// <param name="configuration"></param>
 public RequestLifeCycleHandler(IWebContext webContext, EventBroker broker, RequestPathProvider dispatcher, IContentAdapterProvider adapters, IErrorNotifier errors,
                                ConfigurationManagerWrapper configuration)
 {
     rewriteMethod   = configuration.Sections.Web.Web.Rewrite;
     managementUrl   = configuration.Sections.Management.Paths.ManagementInterfaceUrl;
     this.webContext = webContext;
     this.broker     = broker;
     this.adapters   = adapters;
     this.errors     = errors;
     this.dispatcher = dispatcher;
 }
예제 #4
0
 /// <summary>Creates a new instance of the RequestLifeCycleHandler class.</summary>
 /// <param name="webContext">The web context wrapper.</param>
 /// <param name="broker"></param>
 /// <param name="dispatcher"></param>
 /// <param name="adapters"></param>
 /// <param name="errors"></param>
 /// <param name="configuration"></param>
 public RequestLifeCycleHandler(IWebContext webContext, EventBroker broker, RequestPathProvider dispatcher, IContentAdapterProvider adapters, IErrorNotifier errors,
     ConfigurationManagerWrapper configuration)
 {
     rewriteMethod = configuration.Sections.Web.Web.Rewrite;
     managementUrl = configuration.Sections.Management.ManagementInterfaceUrl;
     this.webContext = webContext;
     this.broker = broker;
     this.adapters = adapters;
     this.errors = errors;
     this.dispatcher = dispatcher;
 }
 /// <summary>Creates a new instance of the RequestLifeCycleHandler class.</summary>
 /// <param name="webContext">The web context wrapper.</param>
 /// <param name="broker"></param>
 /// <param name="installer"></param>
 /// <param name="dispatcher"></param>
 /// <param name="adapters"></param>
 /// <param name="errors"></param>
 /// <param name="editConfig"></param>
 /// <param name="hostConfig"></param>
 /// <param name="managementUrls"></param>
 public RequestLifeCycleHandler(IWebContext webContext, EventBroker broker, InstallationManager installer,
     RequestPathProvider dispatcher, IContentAdapterProvider adapters, IErrorHandler errors,
     IEditUrlManager editUrlManager, EditSection editConfig, HostSection hostConfig)
 {
     checkInstallation = editConfig.Installer.CheckInstallationStatus;
     welcomeUrl = editConfig.Installer.WelcomeUrl;
     managementUrl = editConfig.ManagementInterfaceUrl;
     rewriteMethod = hostConfig.Web.Rewrite;
     this.webContext = webContext;
     this.broker = broker;
     this.adapters = adapters;
     this.errors = errors;
     this.editUrlManager = editUrlManager;
     this.installer = installer;
     this.dispatcher = dispatcher;
 }
예제 #6
0
 /// <summary>Creates a new instance of the RequestLifeCycleHandler class.</summary>
 /// <param name="webContext">The web context wrapper.</param>
 /// <param name="broker"></param>
 /// <param name="installer"></param>
 /// <param name="dispatcher"></param>
 /// <param name="adapters"></param>
 /// <param name="errors"></param>
 /// <param name="editConfig"></param>
 /// <param name="hostConfig"></param>
 /// <param name="managementUrls"></param>
 public RequestLifeCycleHandler(IWebContext webContext, EventBroker broker, InstallationManager installer,
                                RequestPathProvider dispatcher, IContentAdapterProvider adapters, IErrorHandler errors,
                                IEditUrlManager editUrlManager, EditSection editConfig, HostSection hostConfig)
 {
     checkInstallation   = editConfig.Installer.CheckInstallationStatus;
     welcomeUrl          = editConfig.Installer.WelcomeUrl;
     managementUrl       = editConfig.ManagementInterfaceUrl;
     rewriteMethod       = hostConfig.Web.Rewrite;
     this.webContext     = webContext;
     this.broker         = broker;
     this.adapters       = adapters;
     this.errors         = errors;
     this.editUrlManager = editUrlManager;
     this.installer      = installer;
     this.dispatcher     = dispatcher;
 }
 public FakeRequestLifeCycleHandler(IWebContext webContext, RequestPathProvider dispatcher, IContentAdapterProvider adapters, IErrorNotifier errors, ConfigurationManagerWrapper configuration)
     : base(webContext, EventBroker.Instance, dispatcher, adapters, errors, configuration)
 {
     initialized = true;
 }
        void ReCreateDispatcherWithConfig(HostSection config)
        {
            dispatcher = new RequestPathProvider(webContext, parser, errorHandler, config);

            handler = new FakeRequestLifeCycleHandler(webContext, dispatcher, adapterProvider, errorHandler,
                new ConfigurationManagerWrapper { Sections = new ConfigurationManagerWrapper.ContentSectionTable(config, null, null, new EditSection()) });
        }
		void ReCreateDispatcherWithConfig(HostSection config)
		{
			IPersister persister = null;
			dispatcher = new RequestPathProvider(webContext, parser, errorHandler, config, TestSupport.CreateDraftRepository(ref persister));

			handler = new FakeRequestLifeCycleHandler(webContext, dispatcher, adapterProvider, errorHandler,
				new ConfigurationManagerWrapper { Sections = new ConfigurationManagerWrapper.ContentSectionTable(config, null, null, new EditSection()) });
		}
        public override void SetUp()
        {
            base.SetUp();

            ContentAdapterProvider provider = new ContentAdapterProvider(new ContentEngine(), new AppDomainTypeFinder());
            provider.Start();
            dispatcher = new RequestPathProvider(webContext, parser, new FakeErrorHandler(), hostSection);
        }
 public FakeRequestLifeCycleHandler(IWebContext webContext, InstallationManager installer, RequestPathProvider dispatcher, IContentAdapterProvider adapters, IErrorHandler errors, IEditUrlManager editUrlManager, EditSection editConfig, HostSection hostConfig)
     : base(webContext, EventBroker.Instance, installer, dispatcher, adapters, errors, editUrlManager, editConfig, hostConfig)
 {
     initialized = true;
 }