void IFubuRegistryExtension.Configure(FubuRegistry registry)
        {
            registry.ViewFacility(new RazorViewFacility(_templateRegistry, _parsings));
            registry.Services(configureServices);

            registry.AlterSettings<CommonViewNamespaces>(x =>
            {
                x.AddForType<RazorViewFacility>(); // FubuMVC.Razor
                x.AddForType<IPartialInvoker>(); // FubuMVC.Core.UI
            });
        }
        public void Configure(FubuRegistry registry)
        {
            registry.ViewFacility(new WebFormViewFacility());

            registry.Services(x =>
            {
                x.SetServiceIfNone<IWebFormRenderer, WebFormRenderer>();
                x.SetServiceIfNone<IWebFormsControlBuilder, WebFormsControlBuilder>();
                x.SetServiceIfNone<IPartialRenderer, PartialRenderer>();
                x.SetServiceIfNone<IPartialViewTypeRegistry>(new PartialViewTypeRegistry());
            });
        }
Esempio n. 3
0
 void IFubuRegistryExtension.Configure(FubuRegistry registry)
 {
     registry.ViewFacility(new RazorViewFacility(_templateRegistry, _parsings));
     registry.Services(configureServices);
 }