예제 #1
0
 internal IEnumerable <KeyValuePair <QualifiedPropertyName, object> > EnumerateQualifiedProperties()
 {
     if (this.CorrelationId != null)
     {
         yield return(new KeyValuePair <QualifiedPropertyName, object>(new QualifiedPropertyName(PropertyScope.System, "CorrelationId"), this.CorrelationId));
     }
     if (this.MessageId != null)
     {
         yield return(new KeyValuePair <QualifiedPropertyName, object>(new QualifiedPropertyName(PropertyScope.System, "MessageId"), this.MessageId));
     }
     if (this.To != null)
     {
         yield return(new KeyValuePair <QualifiedPropertyName, object>(new QualifiedPropertyName(PropertyScope.System, "To"), this.To));
     }
     if (this.ReplyTo != null)
     {
         yield return(new KeyValuePair <QualifiedPropertyName, object>(new QualifiedPropertyName(PropertyScope.System, "ReplyTo"), this.ReplyTo));
     }
     if (this.Label != null)
     {
         yield return(new KeyValuePair <QualifiedPropertyName, object>(new QualifiedPropertyName(PropertyScope.System, "Label"), this.Label));
     }
     if (this.SessionId != null)
     {
         yield return(new KeyValuePair <QualifiedPropertyName, object>(new QualifiedPropertyName(PropertyScope.System, "SessionId"), this.SessionId));
     }
     if (this.ReplyToSessionId != null)
     {
         yield return(new KeyValuePair <QualifiedPropertyName, object>(new QualifiedPropertyName(PropertyScope.System, "ReplyToSessionId"), this.ReplyToSessionId));
     }
     if (this.ContentType != null)
     {
         yield return(new KeyValuePair <QualifiedPropertyName, object>(new QualifiedPropertyName(PropertyScope.System, "ContentType"), this.ContentType));
     }
     if (this.properties != null && this.properties.Count > 0)
     {
         foreach (KeyValuePair <string, object> property in this.properties)
         {
             QualifiedPropertyName qualifiedPropertyName = new QualifiedPropertyName(PropertyScope.User, property.Key);
             yield return(new KeyValuePair <QualifiedPropertyName, object>(qualifiedPropertyName, property.Value));
         }
     }
 }
예제 #2
0
 public PropertyReference(QualifiedPropertyName propertyName)
 {
     this.PropertyName = propertyName;
 }