Click or drag to resize

Stoppable Class

Provides simple state lock mechanism and shutdown control to classes that extend it.
Inheritance Hierarchy

Namespace:  MFiles.VAF.AppTasks
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.3.623.2
Syntax
public abstract class Stoppable

The Stoppable type exposes the following members.

Properties
  NameDescription
Public propertyIsShuttingDown
Checks if the control is already shutting down.
Protected propertyMaxLockWaitTime
Max lock wait time.
Public propertyShutdownTask
Task that resolves when shutdown is fully completed.
Public propertyShutdownToken
Token that is canceled when the control begins to shutdown.
Top
Methods
  NameDescription
Protected methodAssertLockHeld
Throws if the current thread isn't holding any type of lock.
Protected methodAssertNotShuttingDown
Throws if the control is already shutting down.
Protected methodAssertWriteLockHeld
Throws if the current thread doesn't hold a write lock.
Protected methodBeginShutdownAsync
Triggered when the ShutdownToken is canceled.
Public methodDispose
Dispose the object.
Protected methodDispose(Boolean)
Dispose implementation.
Protected methodEnterReadLock
Enter the lock in read mode.
Protected methodEnterWriteLock
Enter the lock in write mode.
Protected methodExitReadLock
Exit the currently held read lock.
Protected methodExitWriteLock
Exit the currently held write lock.
Protected methodOnShutdownCompleted
Triggered after all shutdown operations have completed.
Public methodShutdownAsync
Starts the shutdown process, if it hasn't already begun.
Top
See Also