feat(app): add IClientContext abstraction for IP and UserAgent

This commit is contained in:
2026-04-14 13:17:12 -03:00
parent 84006776b6
commit 971f6f572f

View File

@@ -0,0 +1,12 @@
namespace SIGCM2.Application.Abstractions;
/// <summary>
/// Provides HTTP client metadata (IP address and User-Agent) from the current request context.
/// Implemented in Infrastructure via IHttpContextAccessor.
/// Mockable in tests without HTTP stack.
/// </summary>
public interface IClientContext
{
string Ip { get; }
string? UserAgent { get; }
}