Table of Contents

Interface IUserContextProvider

Namespace
BytLabs.Application.UserContext
Assembly
BytLabs.Application.dll

Defines a contract for accessing user identity information. Implementations provide user identification from various sources like HTTP context, message context, or other authentication mechanisms.

public interface IUserContextProvider

Methods

GetUserId()

Retrieves the current user's identifier.

string GetUserId()

Returns

string

The user ID if found, or null if no user can be identified