28 references to CorrelationAliasAttribute
System.Workflow.Activities (28)
CorrelationValidator.cs (17)
512paramPath = ((CorrelationAliasAttribute)correlationAliasAttrs[paramName]).Path; 550paramPath = ((CorrelationAliasAttribute)correlationAliasAttrs[paramName]).Path; 576ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationParameterNotFound, typeof(CorrelationAliasAttribute).Name, paramName, memberInfo.Name, typeof(CorrelationParameterAttribute).Name, interfaceType.Name), ErrorNumbers.Error_CorrelationParameterNotFound); 577error.UserData.Add(typeof(CorrelationAliasAttribute), memberInfo.Name); 592paramPath = ((CorrelationAliasAttribute)correlationAliasAttrs[paramName]).Path; 609ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationTypeNotConsistent, paramPath, typeof(CorrelationAliasAttribute).Name, (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name, paramType.Name, ((Type)paramTypes[paramName]).Name, paramName, interfaceType.Name), ErrorNumbers.Error_CorrelationTypeNotConsistent); 610error.UserData.Add(typeof(CorrelationAliasAttribute), (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name); 636memberInfo.GetCustomAttributes(typeof(CorrelationAliasAttribute), false).Length != 0) 669foreach (object memberAttribute in memberInfo.GetCustomAttributes(typeof(CorrelationAliasAttribute), false)) 671CorrelationAliasAttribute aliasAttribute = Helpers.GetAttributeFromObject<CorrelationAliasAttribute>(memberAttribute); 675ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationAliasAttribute).Name, "Name", memberInfo.Name), ErrorNumbers.Error_CorrelationAttributeInvalid); 676error.UserData.Add(typeof(CorrelationAliasAttribute), memberInfo.Name); 683ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationAliasAttribute).Name, "Path", memberInfo.Name), ErrorNumbers.Error_CorrelationAttributeInvalid); 684error.UserData.Add(typeof(CorrelationAliasAttribute), memberInfo.Name); 691ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_DuplicateCorrelationAttribute, typeof(CorrelationAliasAttribute).Name, aliasAttribute.Name, memberInfo.Name), ErrorNumbers.Error_DuplicateCorrelationAttribute); 692error.UserData.Add(typeof(CorrelationAliasAttribute), memberInfo.Name);
LocalService\CorrelationResolver.cs (11)
317Dictionary<String, CorrelationAliasAttribute> corrAliases = null; 333CorrelationAliasAttribute aliasAttribute = GetMatchingCorrelationAlias(paramAttribute, corrAliases, correlationParamAttributes.Count == 1); 347private CorrelationAliasAttribute GetMatchingCorrelationAlias(CorrelationParameterAttribute paramAttribute, Dictionary<String, CorrelationAliasAttribute> correlationAliases, bool defaultParameter) 349CorrelationAliasAttribute corrAlias = null; 383private void GetMethodInfo(Type interfaceType, string methodName, out MethodInfo methodInfo, out Dictionary<String, CorrelationAliasAttribute> correlationAliases) 385correlationAliases = new Dictionary<String, CorrelationAliasAttribute>(); 393customAttrs = eventInfo.GetCustomAttributes(typeof(CorrelationAliasAttribute), true); 396customAttrs = eventInfo.EventHandlerType.GetCustomAttributes(typeof(CorrelationAliasAttribute), true); 409customAttrs = methodInfo.GetCustomAttributes(typeof(CorrelationAliasAttribute), true); 412foreach (CorrelationAliasAttribute aliasAttribute in customAttrs)