Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
146 lines (138 sloc) 8.61 KB
<Type Name="WorkflowInstanceExtensionManager" FullName="System.Activities.Hosting.WorkflowInstanceExtensionManager">
<TypeSignature Language="C#" Value="public class WorkflowInstanceExtensionManager" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit WorkflowInstanceExtensionManager extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Activities.Hosting.WorkflowInstanceExtensionManager" />
<TypeSignature Language="VB.NET" Value="Public Class WorkflowInstanceExtensionManager" />
<TypeSignature Language="C++ CLI" Value="public ref class WorkflowInstanceExtensionManager" />
<TypeSignature Language="F#" Value="type WorkflowInstanceExtensionManager = class" />
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Manages a collection of extensions for a <see cref="T:System.Activities.Hosting.WorkflowInstance" />.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public WorkflowInstanceExtensionManager ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Hosting.WorkflowInstanceExtensionManager.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; WorkflowInstanceExtensionManager();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Activities.Hosting.WorkflowInstanceExtensionManager" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Add">
<MemberSignature Language="C#" Value="public virtual void Add (object singletonExtension);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Add(object singletonExtension) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Hosting.WorkflowInstanceExtensionManager.Add(System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Overridable Sub Add (singletonExtension As Object)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual void Add(System::Object ^ singletonExtension);" />
<MemberSignature Language="F#" Value="abstract member Add : obj -&gt; unit&#xA;override this.Add : obj -&gt; unit" Usage="workflowInstanceExtensionManager.Add singletonExtension" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="singletonExtension" Type="System.Object" />
</Parameters>
<Docs>
<param name="singletonExtension">The extension to add.</param>
<summary>Adds the specified extension to the collection of extensions.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When this overload is used, each workflow instance that requests this extension type will get the extension instance provided to this method. If each workflow instance should have its own instance of the extension, use the other <xref:System.Activities.Hosting.WorkflowInstanceExtensionManager.Add%2A> overload.
If any of the <xref:System.Activities.Hosting.WorkflowInstanceExtensionManager.Add%2A> overloads are called after <xref:System.Activities.Hosting.WorkflowInstanceExtensionManager.MakeReadOnly%2A>, an <xref:System.InvalidOperationException> is thrown.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Add&lt;T&gt;">
<MemberSignature Language="C#" Value="public virtual void Add&lt;T&gt; (Func&lt;T&gt; extensionCreationFunction) where T : class;" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Add&lt;class T&gt;(class System.Func`1&lt;!!T&gt; extensionCreationFunction) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Hosting.WorkflowInstanceExtensionManager.Add``1(System.Func{``0})" />
<MemberSignature Language="VB.NET" Value="Public Overridable Sub Add(Of T As Class) (extensionCreationFunction As Func(Of T))" />
<MemberSignature Language="C++ CLI" Value="public:&#xA;generic &lt;typename T&gt;&#xA; where T : class virtual void Add(Func&lt;T&gt; ^ extensionCreationFunction);" />
<MemberSignature Language="F#" Value="abstract member Add : Func&lt;'T (requires 'T : null)&gt; -&gt; unit (requires 'T : null)&#xA;override this.Add : Func&lt;'T (requires 'T : null)&gt; -&gt; unit (requires 'T : null)" Usage="workflowInstanceExtensionManager.Add extensionCreationFunction" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T">
<Constraints>
<ParameterAttribute>ReferenceTypeConstraint</ParameterAttribute>
</Constraints>
</TypeParameter>
</TypeParameters>
<Parameters>
<Parameter Name="extensionCreationFunction" Type="System.Func&lt;T&gt;" />
</Parameters>
<Docs>
<typeparam name="T">The type of extension to add.</typeparam>
<param name="extensionCreationFunction">The method that creates the extension.</param>
<summary>Registers a <see cref="T:System.Func`1" /> that is used to provide an instance of an extension when requested by a workflow instance.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When this overload is used, each workflow instance that requests this extension type will get a new instance of the extension. If a singleton extension is desired, use the other <xref:System.Activities.Hosting.WorkflowInstanceExtensionManager.Add%2A> overload.
If any of the <xref:System.Activities.Hosting.WorkflowInstanceExtensionManager.Add%2A> overloads are called after <xref:System.Activities.Hosting.WorkflowInstanceExtensionManager.MakeReadOnly%2A>, an <xref:System.InvalidOperationException> is thrown.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="MakeReadOnly">
<MemberSignature Language="C#" Value="public void MakeReadOnly ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void MakeReadOnly() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Hosting.WorkflowInstanceExtensionManager.MakeReadOnly" />
<MemberSignature Language="VB.NET" Value="Public Sub MakeReadOnly ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; void MakeReadOnly();" />
<MemberSignature Language="F#" Value="member this.MakeReadOnly : unit -&gt; unit" Usage="workflowInstanceExtensionManager.MakeReadOnly " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Marks the collection of extensions as read-only.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is called when a workflow host is prepared for execution. If any of the <xref:System.Activities.Hosting.WorkflowInstanceExtensionManager.Add%2A> overloads are called after <xref:System.Activities.Hosting.WorkflowInstanceExtensionManager.MakeReadOnly%2A>, an <xref:System.InvalidOperationException> is thrown.
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.