Class InterruptMonitor

InterruptMonitor class

Represents information about interruption.

public class InterruptMonitor : IInterruptMonitor

Constructors

NameDescription
InterruptMonitor()The default constructor.

Properties

NameDescription
CancellationToken { get; }Monitor’s cancellation token used for process interruption. By default each IInterruptMonitor generates its own cancellationSource.
static ThreadLocalInstance { get; set; }Gets or sets the IInterruptMonitor instance which is unique for each thread.

Methods

NameDescription
Dispose()Disposes used resources.
virtual Interrupt()Sends a request to interrupt operations.

See Also