Condividi tramite


TeamFoundationLockingService Class

Locking Service

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationLockingService

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

Syntax

'Declaration
<TeamFoundationServiceDependency(GetType(TeamFoundationResourceManagementService))> _
Public NotInheritable Class TeamFoundationLockingService _
    Implements ITeamFoundationService
[TeamFoundationServiceDependency(typeof(TeamFoundationResourceManagementService))]
public sealed class TeamFoundationLockingService : ITeamFoundationService
[TeamFoundationServiceDependency(typeof(TeamFoundationResourceManagementService))]
public ref class TeamFoundationLockingService sealed : ITeamFoundationService
[<Sealed>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationResourceManagementService))>]
type TeamFoundationLockingService =  
    class 
        interface ITeamFoundationService 
    end
public final class TeamFoundationLockingService implements ITeamFoundationService

The TeamFoundationLockingService type exposes the following members.

Methods

  Name Description
Public method AcquireLock(TeamFoundationRequestContext, TeamFoundationLockInfo) Gets a cross-process lock on the given resource.
Public method AcquireLock(TeamFoundationRequestContext, TeamFoundationLockMode, String) Gets a cross-process lock on the given resource.
Public method AcquireLock(TeamFoundationRequestContext, TeamFoundationLockMode, String, Int32) Gets a cross-process lock on the given resource.
Public method AcquireLocks(TeamFoundationRequestContext, TeamFoundationLockMode, array<String[]) Gets cross-process locks on one or more resources.
Public method AcquireLocks(TeamFoundationRequestContext, TeamFoundationLockMode, Int32, array<String[]) Gets cross-process locks on one or more resources.
Public method AcquireLocks(TeamFoundationRequestContext, TeamFoundationLockMode, Int32, Boolean, array<String[]) Gets cross-process locks on one or more resources.
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 QueryLockMode Returns true if an exclusive lock on the given resource is currently held.
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 Implementation of ITeamFoundationService.ServiceEnd.
Explicit interface implemetationPrivate method ITeamFoundationService.ServiceStart Implementation of ServiceStart.

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