43 references to CallExternalMethodActivity
System.Workflow.Activities (43)
CorrelationValidator.cs (27)
31
if (!(activity is
CallExternalMethodActivity
) && !(activity is HandleExternalEventActivity))
34
Type interfaceType = (activity is
CallExternalMethodActivity
) ? ((
CallExternalMethodActivity
)activity).InterfaceType : ((HandleExternalEventActivity)activity).InterfaceType;
66
if (activity is
CallExternalMethodActivity
)
68
if (((
CallExternalMethodActivity
)activity).MethodName == null || ((
CallExternalMethodActivity
)activity).MethodName.Length == 0)
71
MethodInfo methodInfo = interfaceType.GetMethod(((
CallExternalMethodActivity
)activity).MethodName, BindingFlags.Instance | BindingFlags.Public);
74
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MissingMethodName, activity.Name, ((
CallExternalMethodActivity
)activity).MethodName), ErrorNumbers.Error_MissingMethodName));
104
CorrelationToken correlator = activity.GetValue((activity is
CallExternalMethodActivity
) ?
CallExternalMethodActivity
.CorrelationTokenProperty : HandleExternalEventActivity.CorrelationTokenProperty) as CorrelationToken;
220
if (!(currentActivity is
CallExternalMethodActivity
) && !(currentActivity is HandleExternalEventActivity))
223
CorrelationToken existingCorrelationTokenValue = currentActivity.GetValue((currentActivity is
CallExternalMethodActivity
) ?
CallExternalMethodActivity
.CorrelationTokenProperty : HandleExternalEventActivity.CorrelationTokenProperty) as CorrelationToken;
227
if (currentActivity is
CallExternalMethodActivity
&& !interfaceType.Equals(((
CallExternalMethodActivity
)currentActivity).InterfaceType))
233
if (currentActivity is
CallExternalMethodActivity
)
235
if (((
CallExternalMethodActivity
)currentActivity).MethodName == null || ((
CallExternalMethodActivity
)currentActivity).MethodName.Length == 0)
238
MethodInfo methodInfo = interfaceType.GetMethod(((
CallExternalMethodActivity
)currentActivity).MethodName, BindingFlags.Instance | BindingFlags.Public);
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;
832
if (activity is
CallExternalMethodActivity
)
Designers\InvokeMethodActivityDesigner.cs (6)
25
CallExternalMethodActivity
invokeMethod = Activity as
CallExternalMethodActivity
;
70
CallExternalMethodActivity
invokeActivity = e.Activity as
CallExternalMethodActivity
;
80
&& e.Activity is
CallExternalMethodActivity
)
81
(e.Activity as
CallExternalMethodActivity
).ParameterBindings.Clear();
InvokeMethodActivity.cs (10)
30
public static readonly DependencyProperty CorrelationTokenProperty = DependencyProperty.Register("CorrelationToken", typeof(CorrelationToken), typeof(
CallExternalMethodActivity
), new PropertyMetadata(DependencyPropertyOptions.Metadata));
31
public static readonly DependencyProperty ParameterBindingsProperty = DependencyProperty.Register("ParameterBindings", typeof(WorkflowParameterBindingCollection), typeof(
CallExternalMethodActivity
), new PropertyMetadata(DependencyPropertyOptions.Metadata | DependencyPropertyOptions.ReadOnly, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content) }));
34
public static readonly DependencyProperty InterfaceTypeProperty = DependencyProperty.Register("InterfaceType", typeof(System.Type), typeof(
CallExternalMethodActivity
), new PropertyMetadata(null, DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) }));
35
public static readonly DependencyProperty MethodNameProperty = DependencyProperty.Register("MethodName", typeof(string), typeof(
CallExternalMethodActivity
), new PropertyMetadata("", DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) }));
38
public static readonly DependencyProperty MethodInvokingEvent = DependencyProperty.Register("MethodInvoking", typeof(EventHandler), typeof(
CallExternalMethodActivity
));
258
if (this.GetType() != typeof(
CallExternalMethodActivity
))
276
PropertyDescriptor prop = new ParameterInfoBasedPropertyDescriptor(typeof(
CallExternalMethodActivity
), param, true, DesignOnlyAttribute.Yes);
290
CallExternalMethodActivity
methodInvoke = obj as
CallExternalMethodActivity
;
292
throw new ArgumentException(SR.GetString(SR.Error_UnexpectedArgumentType, typeof(
CallExternalMethodActivity
).FullName), "obj");