Freigeben über


TeamFoundationLocationService Class

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationLocationService

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

Syntax

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

The TeamFoundationLocationService type exposes the following members.

Properties

  Name Description
Public property CurrentServiceOwner The unique identifier of the current service

Top

Methods

  Name Description
Public method ConfigureAccessMapping
Public method DetermineAccessMapping(TeamFoundationRequestContext) Determines what access mapping this request came from. This is accomplished by comparing the scheme host and port of the incoming request with the location service entries.
Public method DetermineAccessMapping(TeamFoundationRequestContext, String) Determines what access mapping this location comes from. This is accomplished by comparing the scheme host and port of the incoming request with the location service entries.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method FindServiceDefinition(TeamFoundationRequestContext, String, String) Finds the service definition with the provided service type and tool id. In order for this call to succeed, only one service that has the provided service type and tool id can exist.
Public method FindServiceDefinition(TeamFoundationRequestContext, String, Guid, Guid)
Public method FindServiceDefinitions
Public method FindServiceDefinitionsByToolId Finds the service definitions for all of the available services for the specified tool ID. If no services exist for this tool ID, an empty enumeration will be returned.
Public method FindServiceLocation
Public method GetAccessMapping
Public method GetAccessMappings
Public method GetDefaultAccessMapping
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetHostLocation
Public method GetLastChangeId Returns the ID for the last change that was performed on the location data.
Public method GetPublicAccessMapping This method may not actually return the access mapping with Moniker=PublicAccessMapping. If no suc mapping exists we wll return the DefaultAccessMapping instead. If you need to find the actual access mapping with Moniker=PublicAccessMapping (which may or may not exist) you should call GetAccessMapping overload which takes in moniker parameter and be prepared for the possibility that it may return null.
Public method GetRegisteredServiceDomains
Public method GetRootDomainUri(TeamFoundationRequestContext)
Public method GetRootDomainUri(TeamFoundationRequestContext, AccessMapping)
Public method GetSelfReferenceUri
Public method GetServerAccessMapping This method may not actually return the access mapping with Moniker=ServerAccessMapping. If no such mapping exists we will return the PublicAccessMapping instead (which may also not exist in which case we'll return the DefaultAccessMapping). If you need to find the actual access mapping with Moniker=ServerAccessMapping (which may or may not exist) you should call GetAccessMapping overload which takes in moniker parameter and be prepared for the possibility that it may return null.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method LocationForAccessMapping(TeamFoundationRequestContext, ServiceDefinition, AccessMapping)
Public method LocationForAccessMapping(TeamFoundationRequestContext, String, RelativeToSetting, AccessMapping)
Public method LocationForAccessMapping(TeamFoundationRequestContext, String, Guid, AccessMapping, Guid)
Public method MapToRootDomain Given a uri, this method will see if the host matches an alternate domain. If so a new uri will be created that uses the root domain as the host.
Public method RegisterLocationServiceWithSps
Public method RemoveAccessMapping
Public method RemoveServiceDefinitions
Public method SaveServiceDefinitions Registers services with the location service. Any access mappings referenced in a ServiceDefinition or one of its LocationMappings must already be registered with the LocationService. Location Mappings for the provided service definitions that are not fully qualified will be generated and updated on the service definitions passed in. Any service that is relative that passes no location mappings passed in will have location mappings generated for all of the existing access mappings. If only certain access mappings are desired, they must be passed in.
Public method SetDefaultAccessMapping
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public methodStatic member ValidateServiceDefinition Checks to make sure all parameters of the service definitions are valid and checks to see if there is an invalid modification with the isUpdate parameter.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ITeamFoundationService.ServiceEnd Perform clean up steps.
Explicit interface implemetationPrivate method ITeamFoundationService.ServiceStart Perform start steps.

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