2 instantiations of CorrelationTokenEventArgs
System.Workflow.Runtime (2)
CorrelationToken.cs (2)
118
CorrelationTokenEventArgs eventArgs = new
CorrelationTokenEventArgs
(this, true);
136
CorrelationTokenEventArgs eventArgs = new
CorrelationTokenEventArgs
(this, false);
22 references to CorrelationTokenEventArgs
System.Workflow.Runtime (22)
CorrelationToken.cs (22)
31
internal static readonly DependencyProperty SubscriptionsProperty = DependencyProperty.Register("Subscriptions", typeof(IList<ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>>), typeof(CorrelationToken));
118
CorrelationTokenEventArgs
eventArgs = new CorrelationTokenEventArgs(this, true);
119
IList<ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>> subscribers = GetValue(SubscriptionsProperty) as IList<ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>>;
122
foreach (ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
> subscriber in subscribers)
136
CorrelationTokenEventArgs
eventArgs = new CorrelationTokenEventArgs(this, false);
137
IList<ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>> subscribers = GetValue(SubscriptionsProperty) as IList<ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>>;
140
ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>[] clonedSubscribers = new ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>[subscribers.Count];
142
foreach (ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
> subscriber in clonedSubscribers)
151
public void SubscribeForCorrelationTokenInitializedEvent(Activity activity, IActivityEventListener<
CorrelationTokenEventArgs
> dataChangeListener)
158
ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
> subscriber =
159
new ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>(dataChangeListener,
162
IList<ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>> subscriptions = GetValue(SubscriptionsProperty) as IList<ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>>;
165
subscriptions = new List<ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>>();
172
public void UnsubscribeFromCorrelationTokenInitializedEvent(Activity activity, IActivityEventListener<
CorrelationTokenEventArgs
> dataChangeListener)
179
ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
> subscriber =
180
new ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>(dataChangeListener,
183
IList<ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>> subscriptions = GetValue(SubscriptionsProperty) as IList<ActivityExecutorDelegateInfo<
CorrelationTokenEventArgs
>>;