// 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;
using Microsoft.AspNetCore.Razor.Chunks;
namespace Microsoft.AspNetCore.Mvc.Razor.Directives
{
///
/// Contains information.
///
public class ChunkTreeResult
{
///
/// Initializes a new instance of .
///
/// The generated from the file at the
/// given .
/// The path to the file that generated the given .
public ChunkTreeResult(ChunkTree chunkTree, string filePath)
{
if (chunkTree == null)
{
throw new ArgumentNullException(nameof(chunkTree));
}
if (filePath == null)
{
throw new ArgumentNullException(nameof(filePath));
}
ChunkTree = chunkTree;
FilePath = filePath;
}
///
/// The generated from the file at .
///
public ChunkTree ChunkTree { get; }
///
/// The path to the file that generated the .
///
public string FilePath { get; }
}
}