using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using System.IO; using System.Threading.Tasks; namespace HRD.WebApi.DAL.Middleware { /// /// Gets the current API resource name from HTTP context /// /// The HTTP context /// The current resource name if available, otherwise an empty string public class WebApiMiddleware { private readonly RequestDelegate _next; private readonly ILogger _logger; public WebApiMiddleware(RequestDelegate next, ILogger logger) { _next = next; _logger = logger; } } }