public ViewTemplateProvider(ViewTemplateRegistrator registrator, ViewTemplateAnalyzer analyzer, ContentActivator activator, DefinitionBuilder builder, IProvider<HttpContextBase> httpContextProvider, IProvider<VirtualPathProvider> vppProvider)
        {
            this.registrator = registrator;
            this.analyzer = analyzer;
            this.activator = activator;
            this.builder = builder;
            this.httpContextProvider = httpContextProvider;
            this.vppProvider = vppProvider;

            registrator.RegistrationAdded += (s, a) => rebuild = true;
        }
Esempio n. 2
0
 private void TryRegisterViewTemplate <T>(ViewTemplateRegistrator registrator) where T : IController
 {
     try
     {
         registrator.Add <T>();
     }
     catch (System.Exception ex)
     {
         Logger.Error(ex);
     }
 }