// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.Extensions.Options;
namespace Microsoft.AspNetCore.Mvc.Razor.Internal
{
///
/// Default implementation for .
///
public class DefaultCompilerCacheProvider : ICompilerCacheProvider
{
///
/// Initializes a new instance of .
///
/// The .
public DefaultCompilerCacheProvider(IRazorViewEngineFileProviderAccessor fileProviderAccessor)
{
Cache = new CompilerCache(fileProviderAccessor.FileProvider);
}
///
public ICompilerCache Cache { get; }
}
}