예제 #1
0
        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;
        }
예제 #2
0
        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;
        }