다음을 통해 공유


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

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationTaskService

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

Syntax

'Declaration
Public NotInheritable Class TeamFoundationTaskService _
    Implements ITeamFoundationService, ITeamFoundationTaskService
public sealed class TeamFoundationTaskService : ITeamFoundationService, 
    ITeamFoundationTaskService
public ref class TeamFoundationTaskService sealed : ITeamFoundationService, 
    ITeamFoundationTaskService
[<Sealed>]
type TeamFoundationTaskService =  
    class 
        interface ITeamFoundationService 
        interface ITeamFoundationTaskService 
    end
public final class TeamFoundationTaskService implements ITeamFoundationService, ITeamFoundationTaskService

The TeamFoundationTaskService type exposes the following members.

Constructors

  Name Description
Public method TeamFoundationTaskService

Top

Methods

  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 the default hash function. (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.)

Top

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.

Top

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

Reference

Microsoft.TeamFoundation.Framework.Server Namespace