8 writes to ReturnValue
dotnet-svcutil-lib (8)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageBodyDescription.cs (1)
32this.ReturnValue = other.ReturnValue.Clone();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (4)
492messageDescription.Body.ReturnValue = partDesc; 503messageDescription.Body.ReturnValue = messageDescription.Body.Parts[0]; 733messageDescription.Body.ReturnValue = parts[0]; 1233description.Body.ReturnValue = bodyPart;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
638messageDescription.Body.ReturnValue = wrapperPart;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (2)
1236messageDescription.Body.ReturnValue = CreateParameterPartDescription(returnValueName, defaultNS, 0, returnAttrProvider, returnType); 1390messageDescription.Body.ReturnValue = CreateMessagePartDescription(typeof(void),
58 references to ReturnValue
dotnet-svcutil-lib (58)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (5)
275if (OperationFormatter.IsValidReturnValue(message.Body.ReturnValue)) 277ValidateExistingOrSetNewProtectionLevel(message.Body.ReturnValue, message, operation, policyContext.Contract, newProtectionLevel); 283if (!OperationFormatter.IsValidReturnValue(message.Body.ReturnValue) || message.Body.Parts.Count == 0) 428if (OperationFormatter.IsValidReturnValue(message.Body.ReturnValue)) 430message.Body.ReturnValue.ResetProtectionLevel();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (4)
93if (OperationFormatter.IsValidReturnValue(message.Body.ReturnValue)) 94AddKnownTypesForPart(context, message.Body.ReturnValue, operationKnownTypes); 158if (messageDescription.Body.ReturnValue != null) 159ValidateForParameterMode(messageDescription.Body.ReturnValue);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageBodyDescription.cs (2)
30if (other.ReturnValue != null) 32this.ReturnValue = other.ReturnValue.Clone();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (4)
491if (isReturn && messageDescription.Body.ReturnValue == null) 497if (isReply && messageDescription.Body.ReturnValue == null) 731if (isReply && messageDescription.Body.ReturnValue == null && !CheckIsRef(requestMessage, parts[0])) 1232if (isReply && description.Body.ReturnValue == null)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageDescription.cs (5)
160return (Body.ReturnValue != null && Body.Parts.Count == 0 && Body.ReturnValue.Type == TypeOfUntypedMessage) || 161(Body.ReturnValue == null && Body.Parts.Count == 1 && Body.Parts[0].Type == TypeOfUntypedMessage); 169return !IsTypedMessage && Body.Parts.Count == 0 && (Body.ReturnValue == null || Body.ReturnValue.Type == typeof(void));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (13)
257if (!_oneway && _response.Body.ReturnValue != null) 259_endMethod.ReturnType = GetParameterType(_response.Body.ReturnValue); 260ParameterizedMessageHelper.GenerateMessageParameterAttribute(_response.Body.ReturnValue, _endMethod.ReturnTypeCustomAttributes, TypeLoader.GetReturnValueName(_defaultName), _defaultNS); 261AddAdditionalAttributes(_response.Body.ReturnValue, _endMethod.ReturnTypeCustomAttributes, _isEncoded); 332if (isReply && message.Body.ReturnValue != null) 334GenerateBodyPart(0, message.Body.ReturnValue, partCodeGenerator, true, _isEncoded, _defaultNS); 605if (messageDescription.Body.ReturnValue != null) 607AddWrapperPart(messageDescription.MessageName, _wrappedBodyTypeGenerator, partGenerator, messageDescription.Body.ReturnValue, wrapperTypeDecl.CustomAttributes); 608protectionLevel = ProtectionLevelHelper.Max(protectionLevel, messageDescription.Body.ReturnValue.ProtectionLevel); 609if (messageDescription.Body.ReturnValue.HasProtectionLevel) 649if (messageDescription.Body.ReturnValue != null) 650defaultNS = messageDescription.Body.ReturnValue.Namespace; 667order = _response.Body.ReturnValue != null ? 1 : 0;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
444returnPart = OperationFormatter.IsValidReturnValue(message.Body.ReturnValue) ? message.Body.ReturnValue : null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (3)
132if (OperationFormatter.IsValidReturnValue(body.ReturnValue)) 133GeneratePartType(alreadyExported, body.ReturnValue, isWrapped ? body.WrapperNamespace : body.ReturnValue.Namespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (2)
112if (IsValidReturnValue(messageDescription.Body.ReturnValue)) 113messageInfo.ReturnPart = CreatePartInfo(messageDescription.Body.ReturnValue, dataContractFormatAttribute.Style, serializerFactory);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (5)
76if (_responseMessage.Body.ReturnValue != null && _responseMessage.Body.ReturnValue.Type != typeof(void)) 78_returnPart = AddToDictionary(dictionary, _responseMessage.Body.ReturnValue, isRpc); 278if (responseMessage.Body.ReturnValue != null && !IsTypeSupported(responseMessage.Body.ReturnValue))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (6)
38if ((object)streamPart == (object)messageDescription.Body.ReturnValue) 188if (messageDescription.Body.ReturnValue != null && messageDescription.Body.ReturnValue.Type == typeof(Stream)) 200if (OperationFormatter.IsValidReturnValue(messageDescription.Body.ReturnValue)) 203if (messageDescription.Body.ReturnValue.Type == typeof(Stream)) 204return messageDescription.Body.ReturnValue;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (2)
274SerializeBody(writer, version, messageInfo.BodySerializer, messageDescription.Body.ReturnValue, messageDescription.Body.Parts, returnValue, parameters); 334return DeserializeBody(reader, version, messageInfo.BodySerializer, messageDescription.Body.ReturnValue, messageDescription.Body.Parts, parameters, isRequest);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ChannelProtectionRequirements.cs (3)
267else if (message.Body.ReturnValue != null) 269if (!(message.Body.ReturnValue.GetType().Equals(typeof(MessagePartDescription)))) 274MessagePartDescription desc = message.Body.ReturnValue;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (2)
660if (OperationFormatter.IsValidReturnValue(message.Body.ReturnValue)) 662message.Body.ReturnValue.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign;