Creates an instance of ResourceMonitor.
The terminal signal handler to use.
Optional logger: ILoggerThe logger to use for logging (optional).
Private Optional Readonly _loggerPrivate _resourcesPrivate Readonly _terminalPrivate disposeGets the instance of the specified resource.
The type of the resource to retrieve.
The constructor of the resource to retrieve.
The instance of the resource.
if the resource is not found.
Tries to add a resource to the monitor.
The type of the resource extends IAsyncDisposable.
The constructor of the resource to add.
Optional resolver: Resolver<TResource>The resolver function for the resource (optional).
True if the resource was successfully added, false otherwise.
Generated using TypeDoc
Represents a resource monitor. Implements IResourceMonitor.