8 references to GetHostObject
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
167
_taskHostObject = requestEntry.Request.HostServices.
GetHostObject
(requestEntry.RequestConfiguration.Project.FullPath, loggingContext.Target.Name, _taskNode.Name);
Microsoft.Build.Engine.UnitTests (7)
BackEnd\BuildRequest_Tests.cs (1)
173
var hostObject = deserializedRequest.HostServices.
GetHostObject
(
Instance\HostServices_Tests.cs (6)
49
Assert.Same(hostObject, hostServices.
GetHostObject
("foo.proj", "target", "task"));
50
Assert.Same(hostObject2, hostServices.
GetHostObject
("foo.proj", "target2", "task"));
51
Assert.Same(hostObject3, hostServices.
GetHostObject
("foo.proj", "target", "task2"));
102
Assert.Same(hostObject, hostServices.
GetHostObject
("project", "target", "task"));
105
Assert.Null(hostServices.
GetHostObject
("project", "target", "task"));
467
var resultObject = (ITestRemoteHostObject)hostServices.
GetHostObject
("project", "test", "Message");