88 references to Body
System.ServiceModel.Primitives (87)
System\ServiceModel\Description\MessageDescription.cs (9)
145
return (
Body
.ReturnValue != null &&
Body
.Parts.Count == 0 &&
Body
.ReturnValue.Type == TypeOfUntypedMessage) ||
146
(
Body
.ReturnValue == null &&
Body
.Parts.Count == 1 &&
Body
.Parts[0].Type == TypeOfUntypedMessage);
154
return !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 (15)
1088
responseDescription.
Body
.WrapperName = responseDescription.
Body
.WrapperNamespace = null;
1093
requestDescription.
Body
.WrapperName = requestDescription.
Body
.WrapperNamespace = null;
1252
MessagePartDescriptionCollection partDescriptionCollection = messageDescription.
Body
.Parts;
1261
messageDescription.
Body
.Parts.Add(partDescription);
1266
messageDescription.
Body
.ReturnValue = CreateParameterPartDescription(returnValueName, defaultNS, 0, returnAttrProvider, returnType);
1270
messageDescription.
Body
.WrapperName = null;
1271
messageDescription.
Body
.WrapperNamespace = null;
1275
messageDescription.
Body
.WrapperName = wrapperName.EncodedName;
1276
messageDescription.
Body
.WrapperNamespace = wrapperNamespace;
1320
messageDescription.
Body
.WrapperName = GetWrapperName(messageContractAttribute.WrapperName, messageDescription.MessageName).EncodedName;
1321
messageDescription.
Body
.WrapperNamespace = messageContractAttribute.WrapperNamespace ?? defaultNS;
1435
messageDescription.
Body
.ReturnValue = CreateMessagePartDescription(typeof(void),
1443
AddSortedParts(bodyPartDescriptionList, messageDescription.
Body
.Parts);
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (8)
529
if (IsEncoded && message.IsTypedMessage && message.
Body
.WrapperName == null)
540
returnPart = OperationFormatter.IsValidReturnValue(message.
Body
.ReturnValue) ? message.
Body
.ReturnValue : null;
541
bodyParts = message.
Body
.Parts;
542
wrapperName = message.
Body
.WrapperName;
543
wrapperNs = message.
Body
.WrapperNamespace;
576
if (message.
Body
.Parts.Count != 1)
581
MessagePartDescription bodyPart = message.
Body
.Parts[0];
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (3)
116
MessageBodyDescription body = messageDescription.
Body
;
129
if (IsValidReturnValue(messageDescription.
Body
.ReturnValue))
131
messageInfo.ReturnPart = CreatePartInfo(messageDescription.
Body
.ReturnValue, dataContractFormatAttribute.Style, serializerFactory);
System\ServiceModel\Dispatcher\OperationFormatter.cs (4)
35
int stringCount = 3 + _requestDescription.
Body
.Parts.Count;
38
stringCount += 2 + ReplyDescription.
Body
.Parts.Count;
628
_members = new MemberInfo[description.
Body
.Parts.Count + description.Properties.Count + description.Headers.Count];
640
foreach (MessagePartDescription part in description.
Body
.Parts)
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (17)
54
int stringCount = 3 + _requestMessage.
Body
.Parts.Count;
57
stringCount += 2 + _responseMessage.
Body
.Parts.Count;
67
if (_requestMessage.
Body
.WrapperName != null)
69
_requestWrapperName = AddToDictionary(dictionary, _requestMessage.
Body
.WrapperName);
70
_requestWrapperNamespace = AddToDictionary(dictionary, _requestMessage.
Body
.WrapperNamespace);
73
_requestParts = AddToDictionary(dictionary, _requestMessage.
Body
.Parts, isRpc);
77
if (_responseMessage.
Body
.WrapperName != null)
79
_responseWrapperName = AddToDictionary(dictionary, _responseMessage.
Body
.WrapperName);
80
_responseWrapperNamespace = AddToDictionary(dictionary, _responseMessage.
Body
.WrapperNamespace);
83
_responseParts = AddToDictionary(dictionary, _responseMessage.
Body
.Parts, isRpc);
85
if (_responseMessage.
Body
.ReturnValue != null && _responseMessage.
Body
.ReturnValue.Type != typeof(void))
87
_returnPart = AddToDictionary(dictionary, _responseMessage.
Body
.ReturnValue, isRpc);
337
if (!AreTypesSupported(requestMessage.
Body
.Parts))
344
if (!AreTypesSupported(responseMessage.
Body
.Parts))
349
if (responseMessage.
Body
.ReturnValue != null && !IsTypeSupported(responseMessage.
Body
.ReturnValue))
System\ServiceModel\Dispatcher\StreamFormatter.cs (13)
39
if ((object)streamPart == (object)messageDescription.
Body
.ReturnValue)
48
WrapperName = messageDescription.
Body
.WrapperName;
49
WrapperNamespace = messageDescription.
Body
.WrapperNamespace;
233
if (messageDescription.
Body
.ReturnValue != null && messageDescription.
Body
.ReturnValue.Type == typeof(Stream))
238
foreach (MessagePartDescription part in messageDescription.
Body
.Parts)
250
if (OperationFormatter.IsValidReturnValue(messageDescription.
Body
.ReturnValue))
252
if (messageDescription.
Body
.Parts.Count == 0)
254
if (messageDescription.
Body
.ReturnValue.Type == typeof(Stream))
256
return messageDescription.
Body
.ReturnValue;
262
if (messageDescription.
Body
.Parts.Count == 1)
264
if (messageDescription.
Body
.Parts[0].Type == typeof(Stream))
266
return messageDescription.
Body
.Parts[0];
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (7)
330
SerializeBody(writer, version, messageInfo.BodySerializer, messageDescription.
Body
.ReturnValue, messageDescription.
Body
.Parts, returnValue, parameters);
335
object bodyObject = parameters[messageDescription.
Body
.Parts[0].Index];
408
return DeserializeBody(reader, version, messageInfo.BodySerializer, messageDescription.
Body
.ReturnValue, messageDescription.
Body
.Parts, parameters, isRequest);
413
object bodyObject = Activator.CreateInstance(messageDescription.
Body
.Parts[0].Type);
432
parameters[messageDescription.
Body
.Parts[0].Index] = bodyObject;
System\ServiceModel\Security\ChannelProtectionRequirements.cs (6)
255
if (message.
Body
.Parts.Count > 0)
261
else if (message.
Body
.ReturnValue != null)
263
if (!(message.
Body
.ReturnValue.GetType().Equals(typeof(MessagePartDescription))))
268
MessagePartDescription desc = message.
Body
.ReturnValue;
277
if (message.
Body
.Parts.Count > 0)
279
foreach (MessagePartDescription body in message.
Body
.Parts)
System\ServiceModel\Security\WSTrust.cs (4)
1186
if (message.
Body
.Parts.Count > 0)
1188
foreach (MessagePartDescription part in message.
Body
.Parts)
1193
if (OperationFormatter.IsValidReturnValue(message.
Body
.ReturnValue))
1195
message.
Body
.ReturnValue.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign;
UnitTests.Common (1)
TestHelpers.cs (1)
200
ValidatePartDescriptionCollection(messageData.Action, "Body", errorBuilder, messageDesc.
Body
.Parts.ToArray(), messageData.Body);