<PackageReference Include="Microsoft.Bcl" Version="1.1.10" />

System.Threading.CancellationTokenRegistration

Represents a callback delegate that has been registered with a CancellationTokenCancellationToken.

Determines whether two CancellationTokenRegistrationCancellationTokenRegistration instances are equal.

Determines whether two CancellationTokenRegistrationCancellationTokenRegistration instances are not equal.

public void Dispose()

Disposes of the registration and unregisters the target callback from the associated CancellationTokenCancellationToken. If the target callback is currently executing this method will wait until it completes, except in the degenerate cases where a callback method deregisters itself.

Determines whether the current CancellationTokenCancellationToken instance is equal to the specified Object.