/
CorrelationHandle.xml
113 lines (108 loc) · 7.74 KB
/
CorrelationHandle.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<Type Name="CorrelationHandle" FullName="System.ServiceModel.Activities.CorrelationHandle">
<TypeSignature Language="C#" Value="public class CorrelationHandle : System.Activities.Handle" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit CorrelationHandle extends System.Activities.Handle" />
<TypeSignature Language="DocId" Value="T:System.ServiceModel.Activities.CorrelationHandle" />
<TypeSignature Language="VB.NET" Value="Public Class CorrelationHandle
Inherits Handle" />
<TypeSignature Language="F#" Value="type CorrelationHandle = class
 inherit Handle" />
<TypeSignature Language="C++ CLI" Value="public ref class CorrelationHandle : System::Activities::Handle" />
<AssemblyInfo>
<AssemblyName>System.ServiceModel.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Activities.Handle</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Serialization.DataContract]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Serialization.DataContract>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Associates activities together in a correlation by representing a particular shared <see cref="T:System.Runtime.DurableInstancing.InstanceKey" /> or transient context in the workflow.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Windows Workflow Foundation (WF) provides four types of correlation: [Content Based](/dotnet/framework/wcf/feature-details/content-based-correlation), [Request-Reply](/dotnet/framework/wcf/feature-details/request-reply-correlation), [Durable Duplex](/dotnet/framework/wcf/feature-details/durable-duplex-correlation), and [Context Exchange](/dotnet/framework/wcf/feature-details/context-exchange-correlation). For more information about correlation, see [Correlation Overview](/dotnet/framework/wcf/feature-details/correlation-overview), the specific correlation types mentioned previously, and the [LINQ Message Query Correlation](/dotnet/framework/windows-workflow-foundation/samples/linq-message-query-correlation) sample.
The runtime uses the <xref:System.ServiceModel.Activities.CorrelationInitializer.CorrelationHandle%2A> for correlation if it is present, otherwise the **CorrelatesWith** property of the messaging activity will be used. If both are absent, the ambient handle provided by <xref:System.ServiceModel.Activities.CorrelationScope> or the workflow service is used.
## Examples
The following example shows how to set the <xref:System.ServiceModel.Activities.CorrelationHandle> on a <xref:System.ServiceModel.Activities.SendReply> activity.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/implicitexplicitcorrelation/cs/service/pharmacyservice.cs" id="Snippet0":::
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public CorrelationHandle ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.Activities.CorrelationHandle.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 CorrelationHandle();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<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.ServiceModel.Activities.CorrelationHandle" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnInitialize">
<MemberSignature Language="C#" Value="protected override void OnInitialize (System.Activities.HandleInitializationContext context);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void OnInitialize(class System.Activities.HandleInitializationContext context) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.Activities.CorrelationHandle.OnInitialize(System.Activities.HandleInitializationContext)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub OnInitialize (context As HandleInitializationContext)" />
<MemberSignature Language="F#" Value="override this.OnInitialize : System.Activities.HandleInitializationContext -> unit" Usage="correlationHandle.OnInitialize context" />
<MemberSignature Language="C++ CLI" Value="protected:
 override void OnInitialize(System::Activities::HandleInitializationContext ^ context);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="context" Type="System.Activities.HandleInitializationContext" />
</Parameters>
<Docs>
<param name="context">The initialization environment.</param>
<summary>Registers the <see cref="T:System.ServiceModel.Activities.CorrelationHandle" /> with the workflow runtime.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnUninitialize">
<MemberSignature Language="C#" Value="protected override void OnUninitialize (System.Activities.HandleInitializationContext context);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void OnUninitialize(class System.Activities.HandleInitializationContext context) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.Activities.CorrelationHandle.OnUninitialize(System.Activities.HandleInitializationContext)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub OnUninitialize (context As HandleInitializationContext)" />
<MemberSignature Language="F#" Value="override this.OnUninitialize : System.Activities.HandleInitializationContext -> unit" Usage="correlationHandle.OnUninitialize context" />
<MemberSignature Language="C++ CLI" Value="protected:
 override void OnUninitialize(System::Activities::HandleInitializationContext ^ context);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="context" Type="System.Activities.HandleInitializationContext" />
</Parameters>
<Docs>
<param name="context">The initialization environment of the <see cref="T:System.ServiceModel.Activities.CorrelationHandle" />.</param>
<summary>Unregisters the <see cref="T:System.ServiceModel.Activities.CorrelationHandle" /> with the workflow runtime.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>