using Microsoft.AspNetCore.Builder; namespace AMWD.Common.AspNetCore.Security.PathProtection { /// /// Extnsion for to enable folder protection. /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static class ProtectedPathExtensions { /// /// Provide protected paths even for static files. /// /// The . /// The with path and policy name. public static IApplicationBuilder UseProtectedPath(this IApplicationBuilder app, ProtectedPathOptions options) => app.UseMiddleware(options); } }