Partager via


TeamFoundationHostManagementService Class

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationHostManagementService

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

Syntax

'Declaration
<TeamFoundationServiceDependency(GetType(TeamFoundationLocationService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationLockingService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationTaskService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationSqlNotificationService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationTracingService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationJobService))> _
Public NotInheritable Class TeamFoundationHostManagementService _
    Implements IDisposable, ITeamFoundationHostManagementService, ITeamFoundationService
[TeamFoundationServiceDependency(typeof(TeamFoundationLocationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationLockingService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationTaskService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationTracingService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationJobService))]
public sealed class TeamFoundationHostManagementService : IDisposable, 
    ITeamFoundationHostManagementService, ITeamFoundationService
[TeamFoundationServiceDependency(typeof(TeamFoundationLocationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationLockingService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationTaskService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationTracingService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationJobService))]
public ref class TeamFoundationHostManagementService sealed : IDisposable, 
    ITeamFoundationHostManagementService, ITeamFoundationService
[<Sealed>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationLocationService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationLockingService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationTaskService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationTracingService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationJobService))>]
type TeamFoundationHostManagementService =  
    class 
        interface IDisposable 
        interface ITeamFoundationHostManagementService 
        interface ITeamFoundationService 
    end
public final class TeamFoundationHostManagementService implements IDisposable, ITeamFoundationHostManagementService, ITeamFoundationService

The TeamFoundationHostManagementService type exposes the following members.

Properties

  Name Description
Public property DeploymentType Indicates where the deployment type is OnPremises, DevFabric, Cloud, or Unknown.
Public property HostDormancySeconds
Public property IsHosted Indicates whether the DeploymentType is Cloud or DevFabric.

Top

Methods

  Name Description
Public method BeginRequest
Public method BeginUserRequest
Public method CreateServiceHost Creates a service host definition using the provided properties.
Public method DeleteServiceHost(TeamFoundationRequestContext, Guid) Deletes a service host from the server.
Public method DeleteServiceHost(TeamFoundationRequestContext, Guid, UnusedDatabaseReasonNotUsed)
Public method DetectInactiveProcesses Detects and removes inactive processes—processes whose lease has expired and they have not shut down cleanly.
Public method Dispose
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetConfigDataTierTime
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetHostIdFromPath(TeamFoundationRequestContext, String)
Public method GetHostIdFromPath(TeamFoundationRequestContext, String, Boolean)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method PingHostProcess Used to send a ping request to a process that is operating on this application. This request is sent by means of an SQL notification. If the process is running correctly and SQL notifications are being processed, the ping should return successfully in a short time. If notifications are being processed by means of polling or the process has lost connection to the database, it may take longer or never finish.
Public method QueryChildrenServiceHostPropertiesCached
Public method QueryExecutionState(TeamFoundationRequestContext) Queries for all registered service hosts, processes, and host instances.
Public method QueryExecutionState(TeamFoundationRequestContext, Guid) Queries for one or all registered service hosts, and related processes and host instances.
Public method QueryHostReadyState Queries the host ready state.
Public method QueryServiceHostProperties(TeamFoundationRequestContext, Guid) Queries for service host properties using the provided host ID.This will not return any details about this host, and it will not include any children.
Public method QueryServiceHostProperties(TeamFoundationRequestContext, Guid, ServiceHostFilterFlags) Queries for service host properties using the provided host ID. If children are included, the output list will contain properties for all child hosts of the requested service host.
Public method QueryServiceHostPropertiesCached
Public method StartHost
Public method Stop
Public method StopHost Synchronously stops the service host in all active processes.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method UpdateServiceHost Updates the service host definition using the provided properties.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ITeamFoundationService.ServiceEnd
Explicit interface implemetationPrivate method ITeamFoundationService.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