TeamFoundationTaskService Class

A service for queuing tasks to run one time or with a schedule using a pool of worker threads. When a task is executed, the provided task callback method is invoked.

Inheritance Hierarchy


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


Public NotInheritable Class TeamFoundationTaskService _
    Implements ITeamFoundationService
public sealed class TeamFoundationTaskService : ITeamFoundationService
public ref class TeamFoundationTaskService sealed : ITeamFoundationService
type TeamFoundationTaskService =  
        interface ITeamFoundationService 
public final class TeamFoundationTaskService implements ITeamFoundationService

The TeamFoundationTaskService type exposes the following members.


Name Description
Public method TeamFoundationTaskService



Name Description
Public method AddTask(Guid, TeamFoundationTask) Adds a task for the given host.
Public method AddTask(String, TeamFoundationTask<String>)
Public method AddTask(TeamFoundationRequestContext, TeamFoundationTask) Adds the task to the service.
Public method AddTask(TeamFoundationRequestContext, TeamFoundationTaskCallback) Adds a task for the specified callback to the service.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method RemoveAllTasks
Public method RemoveTask(Guid, TeamFoundationTask) Remove a task on the given host.
Public method RemoveTask(String, TeamFoundationTask<String>)
Public method RemoveTask(TeamFoundationRequestContext, TeamFoundationTask) Remove the task from the service.
Public method RemoveTask(TeamFoundationRequestContext, TeamFoundationTaskCallback) Remove the task for the associated callback.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)


Explicit Interface Implementations

Name Description
Explicit interface implemetationPrivate method ITeamFoundationService.ServiceEnd End the task service.
Explicit interface implemetationPrivate method ITeamFoundationService.ServiceStart Start up the task service.


Thread Safety

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

See Also


Microsoft.TeamFoundation.Framework.Server Namespace