API Reference
Class
InventoryHub
In-memory cache for domain/forest inventories with simple prefetch and invalidation.
Inheritance
- Object
- InventoryHub
Methods
public DomainInventory GetDomain(String domainName, InventoryOptions opts = null) #Returns:
DomainInventoryGets or creates a domain inventory and optionally prefetches sections.
Parameters
- domainName System.String
- Target domain (DNS name).
- opts ADPlayground.Inventories.InventoryOptions = null
- Optional prefetch options.
public ForestInventory GetForest(String forestName, InventoryOptions opts = null) #Returns:
ForestInventoryGets or creates a forest inventory and optionally prefetches sections.
Parameters
- forestName System.String
- Target forest (DNS name).
- opts ADPlayground.Inventories.InventoryOptions = null
- Optional prefetch options.
public Void Invalidate(String scope = null) #Returns:
VoidInvalidates cached inventories. When scope is null, clears all.
Parameters
- scope System.String = null
- Domain or forest name to clear, or null for all.
Inherited Methods
Properties
public static InventoryHub Current { get; } #Shared process-wide hub instance.