Developer 02 43d0d86c79 Reapply "chore(config): NLog-Konfiguration aus WebApiConfig entfernt"
This reverts commit dddc01d24c8a9c6991285b69091d423fcf07dbad.
2024-09-02 09:42:39 +02:00

25 lines
729 B
C#

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