TestimoX

API Reference

Class

GroupParentCache

Namespace ADPlayground
Assembly ADPlayground
Modifiers static

Caches parent group lookups to avoid repeated LDAP queries.

Inheritance

  • Object
  • GroupParentCache

Methods

public static Void Clear() #
Returns: Void

Clears all cached parent group results.

Get 2 overloads
public static GroupParentResult Get(IEnumerable<String> identities, String domain = null, Func<IEnumerable<String>, String, GroupParentResult> factory = null) #
Returns: GroupParentResult

Retrieves a cached synchronous result for a single identity.

Parameters

identity System.String requiredposition: 0
Object identity in DN, SID, UPN or SAM format.
domain System.String = null optionalposition: 1
Optional domain controller or domain to query.
factory System.Func{System.Collections.Generic.IEnumerable{System.String},System.String,ADPlayground.GroupParentResult} = null optionalposition: 2
Optional factory used to resolve the parent groups.
Get(System.Collections.Generic.IEnumerable{System.String} identities, System.String domain, System.Func{System.Collections.Generic.IEnumerable{System.String},System.String,ADPlayground.GroupParentResult} factory) #

Retrieves a cached synchronous result for multiple identities.

Parameters

identities System.Collections.Generic.IEnumerable{System.String} required
Collection of identities.
domain System.String required
Optional domain controller or domain to query.
factory System.Func{System.Collections.Generic.IEnumerable{System.String},System.String,ADPlayground.GroupParentResult} required
Optional factory used to resolve the parent groups.
GetAsync 2 overloads
public static Task<GroupParentResult> GetAsync(IEnumerable<String> identities, String domain = null, Func<IEnumerable<String>, String, Task<GroupParentResult>> factory = null) #
Returns: Task<GroupParentResult>

Retrieves a cached result for a single identity.

Parameters

identity System.String requiredposition: 0
Object identity in DN, SID, UPN or SAM format.
domain System.String = null optionalposition: 1
Optional domain controller or domain to query.
factory System.Func{System.Collections.Generic.IEnumerable{System.String},System.String,System.Threading.Tasks.Task{ADPlayground.GroupParentResult}} = null optionalposition: 2
Optional factory used to resolve the parent groups.
GetAsync(System.Collections.Generic.IEnumerable{System.String} identities, System.String domain, System.Func{System.Collections.Generic.IEnumerable{System.String},System.String,System.Threading.Tasks.Task{ADPlayground.GroupParentResult}} factory) #

Retrieves a cached result for multiple identities.

Parameters

identities System.Collections.Generic.IEnumerable{System.String} required
Collection of identities.
domain System.String required
Optional domain controller or domain to query.
factory System.Func{System.Collections.Generic.IEnumerable{System.String},System.String,System.Threading.Tasks.Task{ADPlayground.GroupParentResult}} required
Optional factory used to resolve the parent groups.

Properties

public static TimeSpan CacheEntryTtl { get; set; } #

Gets or sets the time to live for cache entries.

public static Int32 MaxCacheSize { get; set; } #

Gets or sets the maximum number of cache entries.