API Reference
Class
DirectoryQuery
Facade for common AD queries (Groups/Users/Computers) that accepts flexible identities (SID/DN/UPN/SAM/Friendly) and routes through the Identity layer. Includes a small TTL cache to avoid redundant lookups in a single run.
Inheritance
- Object
- DirectoryQuery
Methods
GetAsync 2 overloads
public static async Task<List<UserRecord>> GetAsync(IEnumerable<String> identities, UserQueryOptions options = null, CancellationToken ct = null) #Returns:
Task<List<UserRecord>>Mixed-identity retrieval for computers (SID/DN/UPN/SAM). Normalizes via IdentityResolver and fetches a minimal subset using sAMAccountName per domain where possible.
Parameters
- identities System.Collections.Generic.IEnumerable{System.String}
- options ADPlayground.ComputerQueryOptions = null
- ct System.Threading.CancellationToken = null
GetAsync(System.Collections.Generic.IEnumerable{System.String} identities, ADPlayground.UserQueryOptions options, System.Threading.CancellationToken ct) #Mixed-identity retrieval for users (SID/DN/UPN/SAM/friendly). Normalizes via IdentityResolver and fetches a minimal subset using sAMAccountName per domain where possible.
Parameters
- identities System.Collections.Generic.IEnumerable{System.String}
- options ADPlayground.UserQueryOptions
- ct System.Threading.CancellationToken
public static Void SetCacheTtl(TimeSpan ttl) #Returns:
VoidSets the in-memory cache TTL used to avoid redundant lookups within a single run.
Parameters
- ttl System.TimeSpan
- Desired time-to-live; values <= 0 fallback to 1 second.