Exemplo n.º 1
0
 public CustomCompilerCache(IAssemblyProvider assemblyProvider,
                            IAssemblyLoadContextAccessor loadContextAccessor,
                            IOptions<RazorViewEngineOptions> optionsAccessor,
                            CompilerCacheInitialiedService cacheInitializedService)
     : base(assemblyProvider, loadContextAccessor, optionsAccessor)
 {
     cacheInitializedService.Initialized = true;
 }
Exemplo n.º 2
0
 public CustomCompilerCache(IAssemblyProvider assemblyProvider,
                            IAssemblyLoadContextAccessor loadContextAccessor,
                            IOptions <RazorViewEngineOptions> optionsAccessor,
                            CompilerCacheInitialiedService cacheInitializedService)
     : base(assemblyProvider, loadContextAccessor, optionsAccessor)
 {
     cacheInitializedService.Initialized = true;
 }
Exemplo n.º 3
0
 public CustomCompilerCache(IEnumerable <RazorFileInfoCollection> fileInfoCollection,
                            IAssemblyLoadContextAccessor loadContextAccessor,
                            IOptions <RazorViewEngineOptions> optionsAccessor,
                            CompilerCacheInitialiedService cacheInitializedService)
     : base(fileInfoCollection, loadContextAccessor, optionsAccessor)
 {
     cacheInitializedService.Initialized = true;
 }
Exemplo n.º 4
0
 public CustomCompilerCache(IEnumerable<RazorFileInfoCollection> fileInfoCollection,
                            IAssemblyLoadContextAccessor loadContextAccessor,
                            IOptions<RazorViewEngineOptions> optionsAccessor,
                            CompilerCacheInitialiedService cacheInitializedService)
     : base(fileInfoCollection, loadContextAccessor, optionsAccessor)
 {
     cacheInitializedService.Initialized = true;
 }
Exemplo n.º 5
0
 public ContentResult GetCompilerCacheInitializationStatus(
     [FromServices] CompilerCacheInitialiedService service)
 {
     return(Content(service.Initialized.ToString()));
 }