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