forked from dotnet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathITaskFactory2.xml
90 lines (85 loc) · 7.35 KB
/
ITaskFactory2.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<Type Name="ITaskFactory2" FullName="Microsoft.Build.Framework.ITaskFactory2">
<TypeSignature Language="C#" Value="public interface ITaskFactory2 : Microsoft.Build.Framework.ITaskFactory" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract ITaskFactory2 implements class Microsoft.Build.Framework.ITaskFactory" />
<TypeSignature Language="DocId" Value="T:Microsoft.Build.Framework.ITaskFactory2" />
<AssemblyInfo>
<AssemblyName>Microsoft.Build.Framework</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Microsoft.Build.Framework.ITaskFactory</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>Describes and extended <see cref="T:Microsoft.Build.Framework.ITaskFactory" /> interface that a task factory instance should implement.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="CreateTask">
<MemberSignature Language="C#" Value="public Microsoft.Build.Framework.ITask CreateTask (Microsoft.Build.Framework.IBuildEngine taskFactoryLoggingHost, System.Collections.Generic.IDictionary<string,string> taskIdentityParameters);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Microsoft.Build.Framework.ITask CreateTask(class Microsoft.Build.Framework.IBuildEngine taskFactoryLoggingHost, class System.Collections.Generic.IDictionary`2<string, string> taskIdentityParameters) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Build.Framework.ITaskFactory2.CreateTask(Microsoft.Build.Framework.IBuildEngine,System.Collections.Generic.IDictionary{System.String,System.String})" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Build.Framework</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.Build.Framework.ITask</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="taskFactoryLoggingHost" Type="Microsoft.Build.Framework.IBuildEngine" />
<Parameter Name="taskIdentityParameters" Type="System.Collections.Generic.IDictionary<System.String,System.String>" />
</Parameters>
<Docs>
<param name="taskFactoryLoggingHost">The task factory logging host will log messages in the context of the task.</param>
<param name="taskIdentityParameters">Special parameters that the task factory can use to modify how it executes tasks, such as Runtime and Architecture.</param>
<summary>Create an instance of the task to be used, with an optional set of "special" parameters set on the individual task invocation using the MSBuildRuntime and MSBuildArchitecture default task parameters. MSBuild provides an implementation of this interface, TaskHostFactory, that uses "MSBuildRuntime", with values "CLR2", "CLR4", "CurrentRuntime", and "*" (Any); and "MSBuildArchitecture", with values "x86", "x64", "CurrentArchitecture", and "\*" (Any). An implementer of ITaskFactory2 can choose to use these pre-defined MSBuildRuntime and MSBuildArchitecture values, or can specify new values for these parameters.</summary>
<returns>The generated task, or <c>null</c> if the task failed to be created.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If a task factory implements ITaskFactory2, MSBuild will call this method instead of ITaskFactory.CreateTask.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Initialize">
<MemberSignature Language="C#" Value="public bool Initialize (string taskName, System.Collections.Generic.IDictionary<string,string> factoryIdentityParameters, System.Collections.Generic.IDictionary<string,Microsoft.Build.Framework.TaskPropertyInfo> parameterGroup, string taskBody, Microsoft.Build.Framework.IBuildEngine taskFactoryLoggingHost);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool Initialize(string taskName, class System.Collections.Generic.IDictionary`2<string, string> factoryIdentityParameters, class System.Collections.Generic.IDictionary`2<string, class Microsoft.Build.Framework.TaskPropertyInfo> parameterGroup, string taskBody, class Microsoft.Build.Framework.IBuildEngine taskFactoryLoggingHost) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Build.Framework.ITaskFactory2.Initialize(System.String,System.Collections.Generic.IDictionary{System.String,System.String},System.Collections.Generic.IDictionary{System.String,Microsoft.Build.Framework.TaskPropertyInfo},System.String,Microsoft.Build.Framework.IBuildEngine)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Build.Framework</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="taskName" Type="System.String" />
<Parameter Name="factoryIdentityParameters" Type="System.Collections.Generic.IDictionary<System.String,System.String>" />
<Parameter Name="parameterGroup" Type="System.Collections.Generic.IDictionary<System.String,Microsoft.Build.Framework.TaskPropertyInfo>" />
<Parameter Name="taskBody" Type="System.String" />
<Parameter Name="taskFactoryLoggingHost" Type="Microsoft.Build.Framework.IBuildEngine" />
</Parameters>
<Docs>
<param name="taskName">Name of the task.</param>
<param name="factoryIdentityParameters">Special parameters that the task factory can use to modify how it executes tasks, such as Runtime and Architecture. The key is the name of the parameter and the value is the parameter's value. This is the set of parameters that was set on the UsingTask using e.g. the UsingTask Runtime and Architecture parameters.</param>
<param name="parameterGroup">The parameter group.</param>
<param name="taskBody">The task body.</param>
<param name="taskFactoryLoggingHost">The task factory logging host.</param>
<summary>Initializes this factory for instantiating tasks with a particular inline task block and a set of UsingTask parameters. MSBuild provides an implementation of this interface, TaskHostFactory, that uses "Runtime", with values "CLR2", "CLR4", "CurrentRuntime", and "*" (Any); and "Architecture", with values "x86", "x64", "CurrentArchitecture", and "\*" (Any). An implementer of ITaskFactory2 can choose to use these pre-defined Runtime and Architecture values, or can specify new values for these parameters.</summary>
<returns>A value indicating whether initialization was successful.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
MSBuild engine will call this to initialize the factory. This should initialize the factory enough so that the factory can be asked whether or not task names can be created by the factory. If a task factory implements ITaskFactory2, this Initialize method will be called in place of ITaskFactory.Initialize.
The taskFactoryLoggingHost will log messages in the context of the target where the task is first used.
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>