TestimoX

API Reference

Class

DirectoryContextProvider

Namespace ADPlayground.DirectoryOps
Assembly ADPlayground
Modifiers sealed

Provides typed forest/domain snapshots and caches them per run to avoid repeated AD calls.

Inheritance

  • Object
  • DirectoryContextProvider

Methods

public DomainInfo GetDomain(String domainName) #
Returns: DomainInfo

Returns a cached or freshly resolved DomainInfo for the given domain DNS name.

Parameters

domainName System.String requiredposition: 0
public ForestInfo GetForest(String forestName, String domainNameForLookup = null) #
Returns: ForestInfo

Returns a cached or freshly resolved ForestInfo. Falls back to the domain name when forest is not provided.

Parameters

forestName System.String requiredposition: 0
domainNameForLookup System.String = null optionalposition: 1

Properties

public static DirectoryContextProvider Instance { get; } #

Singleton instance used across the process.