Class UsersWhiteListConfig
- Namespace
- adas_core.Domain.Models.AppSettings
- Assembly
- adas-core.Domain.dll
Represents a configuration collection that defines a whitelist of users, stored as a list of string identifiers.
public class UsersWhiteListConfig : List<string>, IList<string>, ICollection<string>, IReadOnlyList<string>, IReadOnlyCollection<string>, IEnumerable<string>, IList, ICollection, IEnumerable
- Inheritance
-
UsersWhiteListConfig
- Implements
- Inherited Members
- Extension Methods
Remarks
Inherits from a generic list of strings, exposing standard collection semantics for the whitelisted user entries.
Methods
IsValid(User)
Determines whether the collection contains a username matching the specified user's username, using a case-insensitive comparison.
public bool IsValid(User user)
Parameters
userUserThe user whose username will be checked against the collection.
Returns
- bool
trueif a matching username is found; otherwise,false.