// 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 System;
namespace Microsoft.AspNet.Mvc.Razor.Compilation
{
///
/// Result of .
///
public class CompilerCacheResult
{
///
/// Result of when the specified file does not exist in the
/// file system.
///
public static CompilerCacheResult FileNotFound { get; } = new CompilerCacheResult();
///
/// Initializes a new instance of with the specified
/// .
///
/// The
public CompilerCacheResult(CompilationResult compilationResult)
{
if (compilationResult == null)
{
throw new ArgumentNullException(nameof(compilationResult));
}
CompilationResult = compilationResult;
}
///
/// Initializes a new instance of for a failed file lookup.
///
protected CompilerCacheResult()
{
}
///
/// The .
///
/// This property is null when file lookup failed.
public CompilationResult CompilationResult { get; }
}
}