Esempio n. 1
0
        public DefaultViewCompilerProvider(
            ApplicationPartManager applicationPartManager,
            ILoggerFactory loggerFactory)
        {
            var feature = new ViewsFeature();

            applicationPartManager.PopulateFeature(feature);

            _compiler = new DefaultViewCompiler(feature.ViewDescriptors, loggerFactory.CreateLogger <DefaultViewCompiler>());
        }
Esempio n. 2
0
 public DefaultViewCompilerProvider(
     ApplicationPartManager applicationPartManager,
     ILoggerFactory loggerFactory)
 {
     _compiler = new DefaultViewCompiler(applicationPartManager, loggerFactory.CreateLogger <DefaultViewCompiler>());
 }