public VirtualPathRazorPageFactory(ITypeActivator typeActivator, IServiceProvider serviceProvider, ICompilerCache compilerCache, IRazorFileSystemCache fileSystemCache) { _activator = typeActivator; _serviceProvider = serviceProvider; _compilerCache = compilerCache; _fileSystemCache = fileSystemCache; }
/// <summary> /// Initializes a new instance of <see cref="CompilerCache"/> populated with precompiled views /// discovered using <paramref name="provider"/>. /// </summary> /// <param name="provider"> /// An <see cref="IAssemblyProvider"/> representing the assemblies /// used to search for pre-compiled views. /// </param> /// <param name="fileSystem">An <see cref="IRazorFileSystemCache"/> instance that represents the application's /// file system. /// </param> public CompilerCache(IAssemblyProvider provider, IRazorFileSystemCache fileSystem) : this(GetFileInfos(provider.CandidateAssemblies), fileSystem) { }