System.Threading.CancellationTokenRegistration
public struct CancellationTokenRegistration : IEquatable<CancellationTokenRegistration>, IDisposable
Represents a callback delegate that has been registered with a CancellationTokenCancellationToken.
public static bool op_Equality(CancellationTokenRegistration left, CancellationTokenRegistration right)
Determines whether two CancellationTokenRegistrationCancellationTokenRegistration
instances are equal.
public static bool op_Inequality(CancellationTokenRegistration left, CancellationTokenRegistration right)
Determines whether two CancellationTokenRegistrationCancellationTokenRegistration instances are not equal.
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.