API Reference
Class
DirectoryContextProvider
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:
DomainInfoReturns a cached or freshly resolved DomainInfo for the given domain DNS name.
Parameters
- domainName System.String
public ForestInfo GetForest(String forestName, String domainNameForLookup = null) #Returns:
ForestInfoReturns a cached or freshly resolved ForestInfo. Falls back to the domain name when forest is not provided.
Parameters
- forestName System.String
- domainNameForLookup System.String = null
Inherited Methods
Properties
public static DirectoryContextProvider Instance { get; } #Singleton instance used across the process.