Class AbstractInterruptMonitor

Class AbstractInterruptMonitor

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

Monitor for interruption requests in all time-consuming operations.

public abstract class AbstractInterruptMonitor

Inheritance

objectAbstractInterruptMonitor

Derived

InterruptMonitor, SystemTimeInterruptMonitor, ThreadInterruptMonitor

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

AbstractInterruptMonitor()

protected AbstractInterruptMonitor()

Properties

IsInterruptionRequested

Indicates whether interruption is requested for current operation. If true then current operation will be interrupted. Implementation should perform fast and efficient check here, otherwise it may become another bottleneck for the procedure.

public abstract bool IsInterruptionRequested { get; }

Property Value

bool

TerminateWithoutException

When procedure is interrupted, whether terminate the procedure quietly or throw an Exception. Default is false, that is, when Aspose.Cells.AbstractInterruptMonitor.IsInterruptionRequested is true, a Aspose.Cells.CellsException with code Aspose.Cells.ExceptionType.Interrupted will be thrown.

public virtual bool TerminateWithoutException { get; }

Property Value

bool