TeamFoundationHostManagementService 类

继承层次结构

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

命名空间:  Microsoft.TeamFoundation.Framework.Server
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
<TeamFoundationServiceDependency(GetType(TeamFoundationTracingService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationLockingService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationTaskService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationSqlNotificationService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationLocationService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationJobService))> _
Public NotInheritable Class TeamFoundationHostManagementService _
    Implements ITeamFoundationService, IDisposable
[TeamFoundationServiceDependency(typeof(TeamFoundationTracingService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationLockingService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationTaskService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationLocationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationJobService))]
public sealed class TeamFoundationHostManagementService : ITeamFoundationService, 
    IDisposable

TeamFoundationHostManagementService 类型公开以下成员。

属性

  名称 说明
公共属性 DeploymentType 指示部署类型位置。[OnPremises]、[DevFabric]、[Cloud]或 [Unknown]。
公共属性 HostDormancySeconds
公共属性 IsHosted 指示 [DeploymentType] 是否 [Cloud] 或 [DevFabric]。

页首

方法

  名称 说明
公共方法 BeginRequest 返回 [RequestContextBase] 面向特定实例。
公共方法 BeginUserRequest
公共方法 CreateServiceHost 使用提供的属性,创建一个服务主机定义。
公共方法 DeleteServiceHost(TeamFoundationRequestContext, Guid) 从服务器删除服务主机。
公共方法 DeleteServiceHost(TeamFoundationRequestContext, Guid, UnusedDatabaseReasonNotUsed)
公共方法 DetectInactiveProcesses 检测和移除一资产过期,并显示它们完全未关闭的非活动进程。
公共方法 Dispose
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
公共方法 GetConfigDataTierTime
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetHostIdFromPath
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 PingHostProcess 用于发送ping请求到此应用程序运行的进程。此请求通过SQL通知发送。如果处理正确运行,而SQL通知处理,ping应在短时间内成功返回。如果通知通过轮询进程或处理丢失与数据库的连接,它可以无需花费大量时间或完成。
公共方法 QueryChildrenServiceHostPropertiesCached
公共方法 QueryExecutionState(TeamFoundationRequestContext) 所有注册服务主机的查询,进程和主机实例。
公共方法 QueryExecutionState(TeamFoundationRequestContext, Guid) 一个或所有注册服务主机和相关进程和主机实例的查询。
公共方法 QueryHostReadyState 查询宿主就绪状态。
公共方法 QueryServiceHostProperties(TeamFoundationRequestContext, Guid) 服务主机属性的查询使用提供的宿主标识符。这不会返回有关此宿主的任何详细信息,因此,它不包含任何子控件。
公共方法 QueryServiceHostProperties(TeamFoundationRequestContext, Guid, ServiceHostFilterFlags) 服务主机属性的查询使用提供的宿主标识符。如果子项包括在内,输出列表中包含请求的服务主机的所有子宿主的属性。
公共方法 QueryServiceHostPropertiesCached
公共方法 StartHost
公共方法 Stop
公共方法 StopHost 同步停止对所有主活动进程的服务。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 UpdateServiceHost 使用提供的属性,更新服务主机定义。

页首

显式接口实现

  名称 说明
显式接口实现私有方法 ITeamFoundationService.ServiceEnd
显式接口实现私有方法 ITeamFoundationService.ServiceStart

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.TeamFoundation.Framework.Server 命名空间