Export (0) Print
Expand All

TeamFoundationTask Class

A task that can be added to the Task Service to run one time or on an interval basis on a pool of worker threads. When the task runs, the provided callback method is invoked.


Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

public class TeamFoundationTask : TeamFoundationTask<Guid>

The TeamFoundationTask type exposes the following members.

Public methodTeamFoundationTask(TeamFoundationTaskCallback)Creates a TeamFoundationTask for the given callback method
Public methodTeamFoundationTask(TeamFoundationTaskCallback, Object, Int32)Creates a TeamFoundationTask with the specified arguments
Public methodTeamFoundationTask(TeamFoundationTaskCallback, Object, DateTime, Int32)Creates a TeamFoundationTask with the specified arguments

Public propertyCallbackThe callback that should be invoked when the task is executed (Inherited from TeamFoundationTask<T>.)
Public propertyIdentifierSome identifier to figure out who owns this task (Inherited from TeamFoundationTask<T>.)
Public propertyIntervalThe frequency the task should run for this schedule (measured in milliseconds) (Inherited from TeamFoundationTask<T>.)
Public propertyIsHighPriority (Inherited from TeamFoundationTask<T>.)
Public propertyNeedsTargetRequestContext (Overrides TeamFoundationTask<T>.NeedsTargetRequestContext.)
Public propertyServicingContextFlag indicating if this task should return a servicing or system context to the callback. (Inherited from TeamFoundationTask<T>.)
Public propertyStartTimeThe first time the task should run (Inherited from TeamFoundationTask<T>.)
Public propertyTaskArgsThe arguments to pass to the task callback when it is invoked (Inherited from TeamFoundationTask<T>.)

Public methodEqualsReturns true if the given task targets the same callback method (Inherited from TeamFoundationTask<T>.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeGets the hash code for the task (Inherited from TeamFoundationTask<T>.)
Public methodGetRequestContext (Overrides TeamFoundationTask<T>.GetRequestContext(TeamFoundationRequestContext, T).)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringPretty print this task (Inherited from TeamFoundationTask<T>.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2014 Microsoft