Suspendable |
public class SuspendableObject : ISuspendableByToken
The SuspendableObject type exposes the following members.
Name | Description | |
---|---|---|
SuspendableObject | Initializes a new instance of the SuspendableObject class |
Name | Description | |
---|---|---|
IsSuspended | Gets a value indicating whether this instance is suspended. |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
OnAboutToBeResumed | Is called when the suspend level is still 1 (one), but is about to fall to zero, i.e. shortly before the call to OnResume. This function is not called before OnResumeSilently! | |
OnResume | Is called when the suspend level falls down from 1 to zero by a call to Resume or a call to Dispose. | |
OnResumeSilently | Is called when the suspend level falls down from 1 to zero by a call to ResumeSilently. The implementation should delete any accumulated events, should also disarm the suspendTokens of the childs of this object, and should not fire any Changed events nor set the change state of the object to dirty. | |
OnSuspended | Called when the suspend level has just gone from 0 to 1, i.e. the object was suspended. | |
Resume(ISuspendToken) | Decrease the suspend level by disposing the suppress token. The token will fire the Resume event if the suppress level falls to zero. | |
Resume(ISuspendToken, EventFiring) | Decrease the suspend level by disposing the suppress token. The token will fire the Resume event if the suppress level falls to zero. You can suppress the resume event by setting argument 'suppressResumeEvent' to true. | |
ResumeShortlyGetToken | Resumes the events of this class as long as you hold the returned resume token. The original state (the suspenended state) is restored when you dispose the resume token. | |
SuspendGetToken | Increase the SuspendLevel by one, and return a token that, if disposed, will resume the object. | |
ToString | Returns a string that represents the current object. (Inherited from Object) |