Export (0) Print
Expand All

BuildServiceHostUtilities.UpdateEndpointAndBuildServiceAccount Method

Changes 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.

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

public static void UpdateEndpointAndBuildServiceAccount(
	string endpoint,
	X509Certificate2 serverCertificate,
	string userName,
	string password
)

Parameters

endpoint
Type: System.String

The new endpoint for the currently registered service host.

serverCertificate
Type: System.Security.Cryptography.X509Certificates.X509Certificate2

The X509 certificate to use for server authentication.

userName
Type: System.String

The service account to use for the service host. If null, Network Service will be used.

password
Type: System.String

The password for the service account.

Show:
© 2014 Microsoft