1 instantiation of CorrelationHandle
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (1)
376
new
CorrelationHandle
()
171 references to CorrelationHandle
System.Activities.Core.Presentation (26)
System\Activities\Core\Presentation\DesignerMetadata.cs (1)
135
builder.AddCustomAttributes(typeof(InArgument<
CorrelationHandle
>), new EditorReuseAttribute(false));
System\ServiceModel\Activities\Presentation\Factories\ReceiveAndSendReplyFactory.cs (5)
21
static string requiredAssemblyName = typeof(
CorrelationHandle
).Assembly.GetName().Name;
22
static string requiredNamespace = typeof(
CorrelationHandle
).Namespace;
28
Variable<
CorrelationHandle
> requestReplyCorrelation = new Variable<
CorrelationHandle
> { Name = correlationHandleName };
38
CorrelationHandle = new VariableValue<
CorrelationHandle
> { Variable = requestReplyCorrelation }
System\ServiceModel\Activities\Presentation\Factories\SendAndReceiveReplyFactory.cs (5)
21
static string requiredAssemblyName = typeof(
CorrelationHandle
).Assembly.GetName().Name;
22
static string requiredNamespace = typeof(
CorrelationHandle
).Namespace;
28
Variable<
CorrelationHandle
> requestReplyCorrelation = new Variable<
CorrelationHandle
> { Name = correlationHandleName };
38
CorrelationHandle = new VariableValue<
CorrelationHandle
> { Variable = requestReplyCorrelation }
System\ServiceModel\Activities\Presentation\ReceiveDesigner.xaml.cs (6)
35
static string CorrelationHandleTypeNamespace = typeof(
CorrelationHandle
).Namespace;
207
handleVariable = Variable.Create(name, typeof(
CorrelationHandle
), VariableModifiers.None);
212
VariableValue<
CorrelationHandle
> expression = new VariableValue<
CorrelationHandle
> { Variable = handleVariable };
213
InArgument<
CorrelationHandle
> handle = new InArgument<
CorrelationHandle
>(expression);
System\ServiceModel\Activities\Presentation\SendDesigner.xaml.cs (6)
36
static string CorrelationHandleTypeNamespace = typeof(
CorrelationHandle
).Namespace;
210
handleVariable = Variable.Create(name, typeof(
CorrelationHandle
), VariableModifiers.None);
215
VariableValue<
CorrelationHandle
> expression = new VariableValue<
CorrelationHandle
> { Variable = handleVariable };
216
InArgument<
CorrelationHandle
> handle = new InArgument<
CorrelationHandle
>(expression);
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (3)
167
Variable<
CorrelationHandle
> handle = new Variable<
CorrelationHandle
> { Name = "__handle" };
168
receive.CorrelationInitializers.Add(new RequestReplyCorrelationInitializer { CorrelationHandle = new InArgument<
CorrelationHandle
>(handle) });
System.ServiceModel.Activities (145)
System\ServiceModel\Activities\Constants.cs (1)
23
public static readonly Type CorrelationHandleType = typeof(
CorrelationHandle
);
System\ServiceModel\Activities\CorrelationHandle.cs (9)
18
internal static readonly string StaticExecutionPropertyName = typeof(
CorrelationHandle
).FullName;
315
internal static
CorrelationHandle
GetAmbientCorrelation(NativeActivityContext context)
317
return context.Properties.Find(
CorrelationHandle
.StaticExecutionPropertyName) as
CorrelationHandle
;
320
internal static
CorrelationHandle
GetExplicitRequestReplyCorrelation(NativeActivityContext context, Collection<CorrelationInitializer> correlationInitializers)
325
internal static
CorrelationHandle
GetExplicitCallbackCorrelation(NativeActivityContext context, Collection<CorrelationInitializer> correlationInitializers)
330
internal static
CorrelationHandle
GetExplicitContextCorrelation(NativeActivityContext context, Collection<CorrelationInitializer> correlationInitializers)
335
internal static
CorrelationHandle
GetTypedCorrelationHandle(NativeActivityContext context, Collection<CorrelationInitializer> correlationInitializers, Type correlationInitializerType)
337
CorrelationHandle
typedCorrelationHandle = null;
System\ServiceModel\Activities\CorrelationInitializer.cs (2)
22
public InArgument<
CorrelationHandle
> CorrelationHandle
42
clone.CorrelationHandle = (InArgument<
CorrelationHandle
>)InArgument.CreateReference(this.CorrelationHandle, this.ArgumentName);
System\ServiceModel\Activities\CorrelationInitializerCollectionExtensions.cs (6)
12
public static bool TryGetRequestReplyCorrelationHandle(this Collection<CorrelationInitializer> correlationInitializers, NativeActivityContext context, out
CorrelationHandle
correlationHandle)
14
correlationHandle =
CorrelationHandle
.GetExplicitRequestReplyCorrelation(context, correlationInitializers);
18
public static bool TryGetContextCorrelationHandle(this Collection<CorrelationInitializer> correlationInitializers, NativeActivityContext context, out
CorrelationHandle
correlationHandle)
20
correlationHandle =
CorrelationHandle
.GetExplicitContextCorrelation(context, correlationInitializers);
24
public static bool TryGetCallbackCorrelationHandle(this Collection<CorrelationInitializer> correlationInitializers, NativeActivityContext context, out
CorrelationHandle
correlationHandle)
26
correlationHandle =
CorrelationHandle
.GetExplicitCallbackCorrelation(context, correlationInitializers);
System\ServiceModel\Activities\CorrelationScope.cs (6)
18
Variable<
CorrelationHandle
> declaredHandle; //
23
this.declaredHandle = new Variable<
CorrelationHandle
>();
27
public InArgument<
CorrelationHandle
> CorrelatesWith
48
RuntimeArgument correlatesWithArgument = new RuntimeArgument("CorrelatesWith", typeof(
CorrelationHandle
), ArgumentDirection.In);
57
CorrelationHandle
ambientHandle = null;
68
context.Properties.Add(
CorrelationHandle
.StaticExecutionPropertyName, ambientHandle);
System\ServiceModel\Activities\InitializeCorrelation.cs (4)
27
public InArgument<
CorrelationHandle
> Correlation
41
CorrelationHandle
correlationHandle = (this.Correlation == null) ? null : this.Correlation.Get(context);
46
correlationHandle = context.Properties.Find(
CorrelationHandle
.StaticExecutionPropertyName) as
CorrelationHandle
;
System\ServiceModel\Activities\InternalReceiveMessage.cs (45)
56
this.CorrelatesWith = new InArgument<
CorrelationHandle
>(context => (
CorrelationHandle
)null);
88
public InArgument<
CorrelationHandle
> CorrelatesWith
194
CorrelationHandle
followingCorrelation = (this.CorrelatesWith == null) ? null : (
CorrelationHandle
)updateContext.GetValue(this.CorrelatesWith);
197
followingCorrelation = updateContext.FindExecutionProperty(
CorrelationHandle
.StaticExecutionPropertyName) as
CorrelationHandle
;
305
CorrelationHandle
followingCorrelation = (this.CorrelatesWith == null) ? null : this.CorrelatesWith.Get(executionContext);
307
CorrelationHandle
ambientCorrelation = null;
311
ambientCorrelation = executionContext.Properties.Find(
CorrelationHandle
.StaticExecutionPropertyName) as
CorrelationHandle
;
340
ambientCorrelation = executionContext.Properties.Find(
CorrelationHandle
.StaticExecutionPropertyName) as
CorrelationHandle
;
344
CorrelationHandle
channelCorrelationHandle =
CorrelationHandle
.GetExplicitRequestReplyCorrelation(executionContext, this.correlationInitializers);
557
CorrelationHandle
ambientHandle = instance.GetAmbientCorrelation(executionContext);
558
CorrelationHandle
correlatesWithHandle = (this.CorrelatesWith == null) ? null : this.CorrelatesWith.Get(executionContext);
567
CorrelationHandle
channelCorrelationHandle =
CorrelationHandle
.GetExplicitRequestReplyCorrelation(executionContext, this.correlationInitializers);
617
CorrelationHandle
callbackHandle =
CorrelationHandle
.GetExplicitCallbackCorrelation(executionContext, this.correlationInitializers);
680
CorrelationHandle
ambientHandle = instance.GetAmbientCorrelation(executionContext);
697
CorrelationHandle
contextHandle =
CorrelationHandle
.GetExplicitContextCorrelation(executionContext, this.correlationInitializers);
743
this.CorrelatesWith = new InArgument<
CorrelationHandle
>();
853
CorrelationHandle
followingCorrelation = null;
856
followingCorrelation =
CorrelationHandle
.GetAmbientCorrelation(executionContext);
913
CorrelationHandle
ambientHandle =
CorrelationHandle
.GetAmbientCorrelation(executionContext);
926
CorrelationHandle
contextCorrelationHandle =
CorrelationHandle
.GetExplicitContextCorrelation(executionContext, this.correlationInitializers);
939
CorrelationHandle
requestReplyHandle =
CorrelationHandle
.GetExplicitRequestReplyCorrelation(executionContext, this.correlationInitializers);
952
CorrelationHandle
correlatesWithHandle;
979
CorrelationHandle
callbackContextCorrelationHandle =
CorrelationHandle
.GetExplicitCallbackCorrelation(executionContext, this.correlationInitializers);
985
void UpdateE2ETracingId(Guid e2eTracingId,
CorrelationHandle
correlatesWith,
CorrelationHandle
ambientHandle,
CorrelationHandle
requestReplyHandle)
1069
bool TryGetCorrelatesWithHandle(NativeActivityContext context, out
CorrelationHandle
correlationHandle)
1097
CorrelationHandle
ambientCorrelation;
1145
public
CorrelationHandle
GetAmbientCorrelation(NativeActivityContext context)
1153
this.ambientCorrelation = context.Properties.Find(
CorrelationHandle
.StaticExecutionPropertyName) as
CorrelationHandle
;
1157
public void SetAmbientCorrelation(
CorrelationHandle
ambientCorrelation)
System\ServiceModel\Activities\InternalSendMessage.cs (32)
116
public InArgument<
CorrelationHandle
> CorrelatesWith
556
this.CorrelatesWith = new InArgument<
CorrelationHandle
>();
695
CorrelationHandle
correlatesWith = null;
701
CorrelationHandle
ambientHandle =
CorrelationHandle
.GetAmbientCorrelation(context);
722
CorrelationHandle
requestReplyCorrelationHandle;
755
void SendToExtension(SendReceiveExtension sendReceiveExtension, NativeActivityContext context, SendSettings sendSettings, Guid e2eTracingId,
CorrelationHandle
correlatesWith)
881
CorrelationHandle
ambientCorrelationHandle =
CorrelationHandle
.GetAmbientCorrelation(context);
886
CorrelationHandle
contextCorrelationHandle =
CorrelationHandle
.GetExplicitContextCorrelation(context, this.correlationInitializers);
892
CorrelationHandle
callbackCorrelationHandle =
CorrelationHandle
.GetExplicitCallbackCorrelation(context, this.correlationInitializers);
898
CorrelationHandle
requestReplyCorrelationHandle =
CorrelationHandle
.GetExplicitRequestReplyCorrelation(context, this.correlationInitializers);
928
bool TryGetCorrelatesWithHandle(NativeActivityContext context, out
CorrelationHandle
correlationHandle)
1501
CorrelationHandle
followingContextHandle = instance.ContextBasedCorrelationHandle != null ? instance.ContextBasedCorrelationHandle : instance.AmbientHandle;
1568
CorrelationHandle
requestReplyCorrelationHandle = instance.GetExplicitRequestReplyCorrelationHandle(context, this.correlationInitializers);
2247
CorrelationHandle
explicitChannelCorrelationHandle;
2264
CorrelationHandle
correlatesWith = (parent.CorrelatesWith == null) ? null : parent.CorrelatesWith.Get(context);
2274
this.AmbientHandle = context.Properties.Find(
CorrelationHandle
.StaticExecutionPropertyName) as
CorrelationHandle
;
2285
CorrelationHandle
requestReplyCorrelationHandle = GetExplicitRequestReplyCorrelationHandle(context, parent.correlationInitializers);
2299
this.AmbientHandle = context.Properties.Find(
CorrelationHandle
.StaticExecutionPropertyName) as
CorrelationHandle
;
2314
this.ContextBasedCorrelationHandle =
CorrelationHandle
.GetExplicitCallbackCorrelation(context, parent.correlationInitializers);
2333
this.ContextBasedCorrelationHandle =
CorrelationHandle
.GetExplicitContextCorrelation(context, parent.correlationInitializers);
2352
public
CorrelationHandle
CorrelatesWith
2358
public
CorrelationHandle
AmbientHandle
2364
public
CorrelationHandle
ContextBasedCorrelationHandle
2513
public
CorrelationHandle
GetExplicitRequestReplyCorrelationHandle(NativeActivityContext context, Collection<CorrelationInitializer> additionalCorrelations)
2517
this.explicitChannelCorrelationHandle =
CorrelationHandle
.GetExplicitRequestReplyCorrelation(context, additionalCorrelations);
System\ServiceModel\Activities\MessagingActivityHelper.cs (19)
79
CorrelationHandle
selectHandle,
CorrelationHandle
ambientHandle, Collection<CorrelationInitializer> additionalCorrelations,
95
CorrelationHandle
selectHandle,
CorrelationHandle
ambientHandle, Collection<CorrelationInitializer> additionalCorrelations,
118
CorrelationHandle
selectHandle,
CorrelationHandle
ambientHandle, Collection<CorrelationInitializer> additionalCorrelations,
163
CorrelationHandle
handle = (queryCorrelation.CorrelationHandle != null ? queryCorrelation.CorrelationHandle.Get(context) : null);
239
public static InArgument<
CorrelationHandle
> CreateReplyCorrelatesWith(InArgument<
CorrelationHandle
> requestCorrelatesWith)
243
VariableValue<
CorrelationHandle
> variableValue = requestCorrelatesWith.Expression as VariableValue<
CorrelationHandle
>;
246
return new InArgument<
CorrelationHandle
>(variableValue.Variable);
249
VisualBasicValue<
CorrelationHandle
> vbvalue = requestCorrelatesWith.Expression as VisualBasicValue<
CorrelationHandle
>;
252
return new InArgument<
CorrelationHandle
>(new VisualBasicValue<
CorrelationHandle
>(vbvalue.ExpressionText));
259
Activity<
CorrelationHandle
> expression = obj as Activity<
CorrelationHandle
>;
262
return new InArgument<
CorrelationHandle
>(expression);
System\ServiceModel\Activities\Receive.cs (3)
148
public InArgument<
CorrelationHandle
> CorrelatesWith
393
CorrelatesWith = new InArgument<
CorrelationHandle
>(new ArgumentValue<
CorrelationHandle
> { ArgumentName = "CorrelatesWith" }),
System\ServiceModel\Activities\ReceiveReply.cs (4)
153
InArgument<
CorrelationHandle
> requestReplyHandleFromSend = GetReplyHandleFromSend();
156
InArgument<
CorrelationHandle
> resultCorrelatesWith = MessagingActivityHelper.CreateReplyCorrelatesWith(requestReplyHandleFromSend);
162
this.internalReceive.CorrelatesWith = (InArgument<
CorrelationHandle
>)InArgument.CreateReference(resultCorrelatesWith, "ResultCorrelatesWith");
244
InArgument<
CorrelationHandle
> GetReplyHandleFromSend()
System\ServiceModel\Activities\Send.cs (3)
121
public InArgument<
CorrelationHandle
> CorrelatesWith
318
CorrelatesWith = new InArgument<
CorrelationHandle
>(new ArgumentValue<
CorrelationHandle
> { ArgumentName = "CorrelatesWith" }),
System\ServiceModel\Activities\SendReply.cs (6)
156
InArgument<
CorrelationHandle
> requestReplyHandleFromReceive = GetReplyHandleFromReceive();
159
InArgument<
CorrelationHandle
> internalSendCorrelatesWith = MessagingActivityHelper.CreateReplyCorrelatesWith(requestReplyHandleFromReceive);
165
this.internalSend.CorrelatesWith = (InArgument<
CorrelationHandle
>)InArgument.CreateReference(internalSendCorrelatesWith, "InternalSendCorrelatesWith");
169
InArgument<
CorrelationHandle
> responseFormatterCorrelatesWith = MessagingActivityHelper.CreateReplyCorrelatesWith(requestReplyHandleFromReceive);
175
responseFormatter.CorrelatesWith = (InArgument<
CorrelationHandle
>)InArgument.CreateReference(responseFormatterCorrelatesWith, "ResponseFormatterCorrelatesWith");
234
InArgument<
CorrelationHandle
> GetReplyHandleFromReceive()
System\ServiceModel\Activities\ToReply.cs (5)
76
public InArgument<
CorrelationHandle
> CorrelatesWith
119
this.CorrelatesWith = new InArgument<
CorrelationHandle
>();
137
CorrelationHandle
correlatesWith = (this.CorrelatesWith == null) ? null : this.CorrelatesWith.Get(context);
140
correlatesWith = context.Properties.Find(
CorrelationHandle
.StaticExecutionPropertyName) as
CorrelationHandle
;