2 writes to Parts
System.ServiceModel.Primitives (2)
System\ServiceModel\Description\MessageBodyDescription.cs (2)
17Parts = new MessagePartDescriptionCollection(); 24Parts = new MessagePartDescriptionCollection();
40 references to Parts
System.ServiceModel.Primitives (39)
System\ServiceModel\Description\MessageBodyDescription.cs (2)
25foreach (MessagePartDescription mpd in other.Parts) 27Parts.Add(mpd.Clone());
System\ServiceModel\Description\MessageDescription.cs (4)
145return (Body.ReturnValue != null && Body.Parts.Count == 0 && Body.ReturnValue.Type == TypeOfUntypedMessage) || 146(Body.ReturnValue == null && Body.Parts.Count == 1 && Body.Parts[0].Type == TypeOfUntypedMessage); 154return !IsTypedMessage && Body.Parts.Count == 0 && (Body.ReturnValue == null || Body.ReturnValue.Type == typeof(void));
System\ServiceModel\Description\OperationDescription.cs (1)
164(Messages[1].Body.Parts.Count > 0);
System\ServiceModel\Description\TypeLoader.cs (3)
1252MessagePartDescriptionCollection partDescriptionCollection = messageDescription.Body.Parts; 1261messageDescription.Body.Parts.Add(partDescription); 1443AddSortedParts(bodyPartDescriptionList, messageDescription.Body.Parts);
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (3)
541bodyParts = message.Body.Parts; 576if (message.Body.Parts.Count != 1) 581MessagePartDescription bodyPart = message.Body.Parts[0];
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
122MessagePartDescriptionCollection parts = body.Parts;
System\ServiceModel\Dispatcher\OperationFormatter.cs (4)
35int stringCount = 3 + _requestDescription.Body.Parts.Count; 38stringCount += 2 + ReplyDescription.Body.Parts.Count; 628_members = new MemberInfo[description.Body.Parts.Count + description.Properties.Count + description.Headers.Count]; 640foreach (MessagePartDescription part in description.Body.Parts)
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (6)
54int stringCount = 3 + _requestMessage.Body.Parts.Count; 57stringCount += 2 + _responseMessage.Body.Parts.Count; 73_requestParts = AddToDictionary(dictionary, _requestMessage.Body.Parts, isRpc); 83_responseParts = AddToDictionary(dictionary, _responseMessage.Body.Parts, isRpc); 337if (!AreTypesSupported(requestMessage.Body.Parts)) 344if (!AreTypesSupported(responseMessage.Body.Parts))
System\ServiceModel\Dispatcher\StreamFormatter.cs (5)
238foreach (MessagePartDescription part in messageDescription.Body.Parts) 252if (messageDescription.Body.Parts.Count == 0) 262if (messageDescription.Body.Parts.Count == 1) 264if (messageDescription.Body.Parts[0].Type == typeof(Stream)) 266return messageDescription.Body.Parts[0];
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (5)
330SerializeBody(writer, version, messageInfo.BodySerializer, messageDescription.Body.ReturnValue, messageDescription.Body.Parts, returnValue, parameters); 335object bodyObject = parameters[messageDescription.Body.Parts[0].Index]; 408return DeserializeBody(reader, version, messageInfo.BodySerializer, messageDescription.Body.ReturnValue, messageDescription.Body.Parts, parameters, isRequest); 413object bodyObject = Activator.CreateInstance(messageDescription.Body.Parts[0].Type); 432parameters[messageDescription.Body.Parts[0].Index] = bodyObject;
System\ServiceModel\Security\ChannelProtectionRequirements.cs (3)
255if (message.Body.Parts.Count > 0) 277if (message.Body.Parts.Count > 0) 279foreach (MessagePartDescription body in message.Body.Parts)
System\ServiceModel\Security\WSTrust.cs (2)
1186if (message.Body.Parts.Count > 0) 1188foreach (MessagePartDescription part in message.Body.Parts)
UnitTests.Common (1)
TestHelpers.cs (1)
200ValidatePartDescriptionCollection(messageData.Action, "Body", errorBuilder, messageDesc.Body.Parts.ToArray(), messageData.Body);