API Reference
Class
TemporaryAdminTracker
Tracks privileged group membership changes and records them with timestamps.
Inheritance
- Object
- TemporaryAdminTracker
Constructors
public TemporaryAdminTracker(String logPath, Func<String, HashSet<String>> resolver = null) #Initializes a new instance of the TemporaryAdminTracker class.
Parameters
- logPath System.String
- Path to the JSON log file.
- resolver System.Func{System.String,System.Collections.Generic.HashSet{System.String}} = null
- Optional delegate used to resolve group members.
Methods
public static IReadOnlyList<TemporaryAdminEvent> Load(String path) #Returns:
IReadOnlyList<TemporaryAdminEvent>Loads change events from a log file.
Parameters
- path System.String
- Path to the JSON log file.
Returns
Collection of events.
public static Task<IReadOnlyList<TemporaryAdminEvent>> LoadAsync(String path, CancellationToken cancellationToken = null) #Returns:
Task<IReadOnlyList<TemporaryAdminEvent>>Loads change events from a log file.
Parameters
- path System.String
- Path to the JSON log file.
- cancellationToken System.Threading.CancellationToken = null
- Token to cancel the operation.
Returns
Collection of events.
public Void RecordChanges(String groupDn) #Returns:
VoidChecks the group for membership changes and records them.
Parameters
- groupDn System.String
- Distinguished name of the group.
public Task SaveAsync(CancellationToken cancellationToken = null) #Returns:
TaskSaves change events to the log file.
Parameters
- cancellationToken System.Threading.CancellationToken = null
- Token to cancel the operation.
public Void TrackGroup(String groupDn) #Returns:
VoidStores the current membership of a group for comparison.
Parameters
- groupDn System.String
- Distinguished name of the group.
Inherited Methods
Properties
public IReadOnlyList<TemporaryAdminEvent> Events { get; } #Gets recorded membership changes.