BuildServiceHostUtilities Class

The BuildServiceHostUtilities class can be used to configure a build service host on the physical computer where it will run.

System.Object
  Microsoft.TeamFoundation.Build.Config.BuildServiceHostUtilities

Namespace:  Microsoft.TeamFoundation.Build.Config
Assembly:  Microsoft.TeamFoundation.Build.Config (in Microsoft.TeamFoundation.Build.Config.dll)

public static class BuildServiceHostUtilities

The BuildServiceHostUtilities type exposes the following members.

  NameDescription
Public methodStatic memberChangeEndpointChanges the endpoint—the incoming URI, such as http://machinename:9191—for the currently registered service host.
Public methodStatic memberChangeEndpointAndUser Obsolete. Changes the endpoint—the incoming URI, such as http://machinename:9191—and the service account for the currently registered service host.
Public methodStatic memberChangeInteractive(Boolean)Changes the service interactive flag for the currently registered service host.
Public methodStatic memberChangeInteractive(Boolean, Boolean)Changes the service interactive flag for the currently registered service host.
Public methodStatic memberChangeUser Obsolete. Changes the service account for the currently registered service host.
Public methodStatic memberGetCurrentGets the currently registered build service host for this computer.
Public methodStatic memberGetHttpPrefix
Public methodStatic memberGetUTCertificateThumbprintReturns Certificate ThumbPrint from registry
Public methodStatic memberRegister(IBuildServiceHost, String, String)
Public methodStatic memberRegister(IBuildServiceHost, String, String, X509Certificate2)
Public methodStatic memberRegister(IBuildServiceHost, String, String, String, Boolean)Registers the service host with its project collection, by using the provided userName and password. If the service host is already registered, an exception is thrown. In this case, call Unregister first.
Public methodStatic memberRegister(IBuildServiceHost, String, String, X509Certificate2, String, Boolean)Registers the service host with its project collection, by using the provided userName and password. If the service host is already registered, an exception is thrown. In this case, call Unregister first.
Public methodStatic memberRegisterEndpointOnlyPartially registers the service host by using the provided endpoint userName, and password. The service host will not be registered with a project collection and will not be usable until registration is completed.
Public methodStatic memberUnregisterUnregisters the currently registered service host and optionally deletes all resources (controller and agents). If you plan to move this service host to another computer, pass in false for deleteResources. If not, pass true.
Public methodStatic memberUpdateAuthenticatingAccountUpdate the Team Foundation Server authenticating account for the currently registered service host. Use this method when a different account from the build service account is used to authenticate against TFS
Public methodStatic memberUpdateBuildServiceAccountChanges the service account for the currently registered service host.If another account is used to authenticate against TFS, use UpdateAuthenticatingAccount.
Public methodStatic memberUpdateEndpointAndBuildServiceAccountChanges the endpoint—the incoming URI, for example, http://machinename:9191—and the service account for the currently registered service host.If another account is used to authenticate against TFS, use UpdateAuthenticatingAccount.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft