45 references to HandleExternalEventActivity
System.Workflow.Activities (45)
CorrelationValidator.cs (20)
31
if (!(activity is CallExternalMethodActivity) && !(activity is
HandleExternalEventActivity
))
34
Type interfaceType = (activity is CallExternalMethodActivity) ? ((CallExternalMethodActivity)activity).InterfaceType : ((
HandleExternalEventActivity
)activity).InterfaceType;
88
if (((
HandleExternalEventActivity
)activity).EventName == null || ((
HandleExternalEventActivity
)activity).EventName.Length == 0)
91
EventInfo eventInfo = interfaceType.GetEvent(((
HandleExternalEventActivity
)activity).EventName, BindingFlags.Instance | BindingFlags.Public);
94
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MissingEventName, activity.Name, ((
HandleExternalEventActivity
)activity).EventName), ErrorNumbers.Error_MissingMethodName));
104
CorrelationToken correlator = activity.GetValue((activity is CallExternalMethodActivity) ? CallExternalMethodActivity.CorrelationTokenProperty :
HandleExternalEventActivity
.CorrelationTokenProperty) as CorrelationToken;
170
if (replicatorParent != null && activity is
HandleExternalEventActivity
)
220
if (!(currentActivity is CallExternalMethodActivity) && !(currentActivity is
HandleExternalEventActivity
))
223
CorrelationToken existingCorrelationTokenValue = currentActivity.GetValue((currentActivity is CallExternalMethodActivity) ? CallExternalMethodActivity.CorrelationTokenProperty :
HandleExternalEventActivity
.CorrelationTokenProperty) as CorrelationToken;
229
else if (currentActivity is
HandleExternalEventActivity
&& !interfaceType.Equals(((
HandleExternalEventActivity
)currentActivity).InterfaceType))
246
if (((
HandleExternalEventActivity
)currentActivity).EventName == null || ((
HandleExternalEventActivity
)currentActivity).EventName.Length == 0)
249
EventInfo eventInfo = interfaceType.GetEvent(((
HandleExternalEventActivity
)currentActivity).EventName, BindingFlags.Instance | BindingFlags.Public);
260
if (activity is
HandleExternalEventActivity
)
816
if (!(activity is CallExternalMethodActivity) && !(activity is
HandleExternalEventActivity
))
819
Type interfaceType = (activity is CallExternalMethodActivity) ? ((CallExternalMethodActivity)activity).InterfaceType : ((
HandleExternalEventActivity
)activity).InterfaceType;
823
string operation = (activity is CallExternalMethodActivity) ? ((CallExternalMethodActivity)activity).MethodName : ((
HandleExternalEventActivity
)activity).EventName;
827
WorkflowParameterBindingCollection parameterBinding = (activity is CallExternalMethodActivity) ? ((CallExternalMethodActivity)activity).ParameterBindings : ((
HandleExternalEventActivity
)activity).ParameterBindings;
Designers\EventSinkActivityDesigner.cs (6)
27
HandleExternalEventActivity
eventSink = Activity as
HandleExternalEventActivity
;
71
HandleExternalEventActivity
eventSinkActivity = e.Activity as
HandleExternalEventActivity
;
80
&& e.Activity is
HandleExternalEventActivity
)
82
(e.Activity as
HandleExternalEventActivity
).ParameterBindings.Clear();
EventSinkActivity.cs (16)
30
public static readonly DependencyProperty CorrelationTokenProperty = DependencyProperty.Register("CorrelationToken", typeof(CorrelationToken), typeof(
HandleExternalEventActivity
), new PropertyMetadata(DependencyPropertyOptions.Metadata));
31
public static readonly DependencyProperty RolesProperty = DependencyProperty.Register("Roles", typeof(WorkflowRoleCollection), typeof(
HandleExternalEventActivity
));
32
public static readonly DependencyProperty ParameterBindingsProperty = DependencyProperty.Register("ParameterBindings", typeof(WorkflowParameterBindingCollection), typeof(
HandleExternalEventActivity
), new PropertyMetadata(DependencyPropertyOptions.Metadata | DependencyPropertyOptions.ReadOnly, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content) }));
33
private static DependencyProperty ActivitySubscribedProperty = DependencyProperty.Register("ActivitySubscribed", typeof(bool), typeof(
HandleExternalEventActivity
), new PropertyMetadata(false));
34
private static DependencyProperty QueueNameProperty = DependencyProperty.Register("QueueName", typeof(IComparable), typeof(
HandleExternalEventActivity
));
37
public static readonly DependencyProperty InterfaceTypeProperty = DependencyProperty.Register("InterfaceType", typeof(System.Type), typeof(
HandleExternalEventActivity
), new PropertyMetadata(null, DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) }));
38
public static readonly DependencyProperty EventNameProperty = DependencyProperty.Register("EventName", typeof(string), typeof(
HandleExternalEventActivity
), new PropertyMetadata("", DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) }));
41
public static readonly DependencyProperty InvokedEvent = DependencyProperty.Register("Invoked", typeof(EventHandler<ExternalDataEventArgs>), typeof(
HandleExternalEventActivity
));
335
base.RemoveProperty(
HandleExternalEventActivity
.ActivitySubscribedProperty);
350
HandleExternalEventActivity
activity = context.Activity as
HandleExternalEventActivity
;
457
if (this.GetType() != typeof(
HandleExternalEventActivity
))
477
PropertyDescriptor prop = new ParameterInfoBasedPropertyDescriptor(typeof(
HandleExternalEventActivity
), param, true, DesignOnlyAttribute.Yes);
491
HandleExternalEventActivity
eventSink = obj as
HandleExternalEventActivity
;
493
throw new ArgumentException(SR.GetString(SR.Error_UnexpectedArgumentType, typeof(
HandleExternalEventActivity
).FullName), "obj");
Executors\InboundActivityHelper.cs (2)
20
internal static ActivityExecutionStatus ExecuteForActivity(
HandleExternalEventActivity
activity, ActivityExecutionContext context, Type interfaceType, string operation, out object[] args)
54
private static object[] ProcessEvent(
HandleExternalEventActivity
activity, ActivityExecutionContext context, object msg, Type interfaceType, string operation)
SR.cs (1)
545
typeof(
HandleExternalEventActivity
).Name,