aspnetcore/src/Microsoft.AspNetCore.Static.../StaticFileResponseContext.cs

25 lines
763 B
C#

// 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.AspNetCore.Http;
using Microsoft.Extensions.FileProviders;
namespace Microsoft.AspNetCore.StaticFiles
{
/// <summary>
/// Contains information about the request and the file that will be served in response.
/// </summary>
public class StaticFileResponseContext
{
/// <summary>
/// The request and response information.
/// </summary>
public HttpContext Context { get; internal set; }
/// <summary>
/// The file to be served.
/// </summary>
public IFileInfo File { get; internal set; }
}
}