Table of Contents

Interface IResourceMonitorable

Namespace
DotCompute.Abstractions.Health
Assembly
DotCompute.Abstractions.dll

Interface for components that expose resource leak detection.

public interface IResourceMonitorable

Properties

AllocatedResourceCount

Gets the count of currently allocated resources.

int AllocatedResourceCount { get; }

Property Value

int

ReleasedResourceCount

Gets the count of resources that have been released.

int ReleasedResourceCount { get; }

Property Value

int

Methods

CheckForLeaksAsync(CancellationToken)

Checks for potential resource leaks.

Task<ResourceLeakResult> CheckForLeaksAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ResourceLeakResult>

Resource leak detection result.