Files
SIG-CM2.0/src/api/SIGCM2.Application/Abstractions/IClientContext.cs

13 lines
361 B
C#
Raw Normal View History

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; }
}