// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using Microsoft.AspNet.FileProviders;
namespace Microsoft.AspNet.Mvc.Razor
{
///
/// Provides programmatic configuration for the .
///
public class RazorViewEngineOptions
{
private IFileProvider _fileProvider;
///
/// Get a used by the .
///
public IList ViewLocationExpanders { get; }
= new List();
///
/// Gets or sets the used by to locate Razor files on
/// disk.
///
///
/// At startup, this is initialized to an instance of that is rooted at the
/// application root.
///
public IFileProvider FileProvider
{
get { return _fileProvider; }
set
{
if (value == null)
{
throw new ArgumentNullException(nameof(value));
}
_fileProvider = value;
}
}
}
}