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

            applicationPartManager.PopulateFeature(feature);

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