다음을 통해 공유


HostServices Class

Definition

Implementation of HostServices that mediates access from the build to the host.

public ref class HostServices
public class HostServices
type HostServices = class
Public Class HostServices
Inheritance
HostServices

Remarks

See also HostObject.

Constructors

HostServices()

Creates a host service.

Methods

GetHostObject(String, String, String)

Gets any host object applicable to this task name where the task appears within a target and project with the specified names. If no host object exists, returns null.

GetNodeAffinity(String)

Retrieves the node affinity for a particular project file.

OnRenameProject(String, String)

Updates the host object table when a project is renamed. Old full path may be null.

RegisterHostObject(String, String, String, ITaskHost)

Register a host object for a particular task/target pair. Overwrites any existing host object.

RegisterHostObject(String, String, String, String)

Register a remote host object for a particular task/target pair. The remote host object require registered in Running Object Table(ROT) already. Overwrites any existing host object.

It's caller's responsibly: To maintain the live cycle of the host object. Register and unregister from ROT. Ensure the host object has appropriate COM interface that can be used in task.

SetNodeAffinity(String, NodeAffinity)

Sets the node affinity for a particular project file.

UnregisterProject(String)

Unregister the project's host objects, if any and remove any node affinities associated with it.

Applies to