public override ValidationErrorCollection Validate(ValidationManager manager, object obj)
        {
            if (!(obj is CallExternalMethodActivity))
            {
                throw new ArgumentException(SR.GetString("Error_UnexpectedArgumentType", new object[] { typeof(CallExternalMethodActivity).FullName }), "obj");
            }
            ValidationErrorCollection errors = base.Validate(manager, obj);

            errors.AddRange(CorrelationSetsValidator.Validate(manager, obj));
            errors.AddRange(ParameterBindingValidator.Validate(manager, obj));
            return(errors);
        }
コード例 #2
0
        public override ValidationErrorCollection Validate(ValidationManager manager, object obj)
        {
            CallExternalMethodActivity methodInvoke = obj as CallExternalMethodActivity;

            if (methodInvoke == null)
            {
                throw new ArgumentException(SR.GetString(SR.Error_UnexpectedArgumentType, typeof(CallExternalMethodActivity).FullName), "obj");
            }

            ValidationErrorCollection validationErrors = base.Validate(manager, obj);

            validationErrors.AddRange(CorrelationSetsValidator.Validate(manager, obj));
            validationErrors.AddRange(ParameterBindingValidator.Validate(manager, obj));
            return(validationErrors);
        }
コード例 #3
0
        public override ValidationErrorCollection Validate(ValidationManager manager, object obj)
        {
            HandleExternalEventActivity eventSink = obj as HandleExternalEventActivity;

            if (eventSink == null)
            {
                throw new ArgumentException(SR.GetString(SR.Error_UnexpectedArgumentType, typeof(HandleExternalEventActivity).FullName), "obj");
            }

            ValidationErrorCollection validationErrors = base.Validate(manager, obj);

            validationErrors.AddRange(CorrelationSetsValidator.Validate(manager, obj));
            validationErrors.AddRange(ParameterBindingValidator.Validate(manager, obj));
            return(validationErrors);
        }