示例#1
0
 private static void AddActionParts(ScopedMessagePartSpecification to, ScopedMessagePartSpecification from)
 {
     foreach (string action in from.Actions)
     {
         if (from.TryGetParts(action, true, out MessagePartSpecification p))
         {
             to.AddParts(p, action);
         }
     }
 }
示例#2
0
 static void AddActionParts(ScopedMessagePartSpecification to, ScopedMessagePartSpecification from)
 {
     foreach (var action in from.Actions)
     {
         MessagePartSpecification p;
         if (from.TryGetParts(action, true, out p))
         {
             to.AddParts(p, action);
         }
     }
 }
 internal void CopyTo(ScopedMessagePartSpecification target)
 {
     if (target == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("target");
     }
     target.ChannelParts.IsBodyIncluded = ChannelParts.IsBodyIncluded;
     foreach (XmlQualifiedName headerType in ChannelParts.HeaderTypes)
     {
         if (!target.channelParts.IsHeaderIncluded(headerType.Name, headerType.Namespace))
         {
             target.ChannelParts.HeaderTypes.Add(headerType);
         }
     }
     foreach (string action in actionParts.Keys)
     {
         target.AddParts(actionParts[action], action);
     }
 }