Aurigma Graphics Mill 5.5 for .NET
SyncHandler Class
This is a base class for all the codecs, transforms, as well as any other operations which can be run asynchronously. It contains partial implementation for ISyncHandler interface.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Visual Basic
Public Class SyncHandler _ Implements ISyncHandler
C#
public class SyncHandler : ISyncHandler
Remarks
Main aim of this class is to provide access to operation execution. Using Abort()()() method you can cancel the operation execution. Pause()()() and Continue()()() methods are used to suspend/resume the operation.
This class provides asynchronous modes support. It is specified with SynchronizationMode. For synchronization of some thread with the operation completion, you can use WaitForCompletion()()() method.
A number of events can be used to provide control of the operation execution:
- Starting/Startedoperation is starting/has been started;
- Progress operation is running;
- Paused/Continuedoperation was paused/resumed;
- Aborted operation was cancelled;
- Stopping/Stoppedoperation is about to finish/fully completed.
This class also provides an implementation for ILockable interface, so you can use object locking functionality.