Was this page helpful?

TaskTimerFactory Class

    Table of contents
    1. 1. Members
      1. 1.1. Properties
      2. 1.2. Methods
    Table of Contents
    public class TaskTimerFactory
    Namespace: MindTouch.Tasking
    Assembly: mindtouch.dream
    Type Hierarchy:
    • object
      • TaskTimerFactory
    Implements:
    Provides a factory for creating new MindTouch.Dream.TaskTimer instances whose lifetime is goverened by the creating factory lifetime.

    Members

    Properties

    Visibility Description
    Public Default The global default factory.
    Public Current The currently active factory.
    Public Factories All active factories.
    Public Owner Weak-reference accessor to factory owner (i.e. the factory will not stop the owner from being garbage collected.)
    Public OwnerType Type of owner object. This value will remain populated even if the actual owner is garbage collected.
    Public IsAbandoned Determine whether the owner was garbage collected. In proper usage, the owner should always have shut down the factory before it went away.
    Public NextMaintenance Time until the next MindTouch.Dream.TaskTimer maintenance.
    Public Pending A collection of all timers currently pending.
    Public Next The timer that will fire next.

    Methods

    Visibility Description
    Public Create(object owner) Create a new factory.
    Public GetStatistics() Get statistical information about all active factories.
    Public ShutdownAll() Globally shut down all task timers and factories.
    Public New(Action<TaskTimer> handler, object state) Create a new timer.
    Public New(DateTime when, Action<TaskTimer> handler, object state, TaskEnv env) Create a new timer and set its fire time.
    Public New(TimeSpan when, Action<TaskTimer> handler, object state, TaskEnv env) Create a new timer and set its fire time.
    Public Shutdown() Shut down all timers related to this factory.
    Public Dispose() Shutdown the factory.
    Public ToString() (Inherited from Object)
    Public Equals(object obj) (Inherited from Object)
    Public GetHashCode() (Inherited from Object)
    Public GetType() (Inherited from Object)
    Protected MemberwiseClone() (Inherited from Object)
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by