11 writes to ReturnValue
System.ServiceModel (9)
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (1)
343messageDescription.Body.ReturnValue = messagePart;
System\ServiceModel\Description\MessageBodyDescription.cs (1)
36this.ReturnValue = other.ReturnValue.Clone();
System\ServiceModel\Description\MessageContractImporter.cs (4)
503messageDescription.Body.ReturnValue = partDesc; 514messageDescription.Body.ReturnValue = messageDescription.Body.Parts[0]; 745messageDescription.Body.ReturnValue = parts[0]; 1245description.Body.ReturnValue = bodyPart;
System\ServiceModel\Description\OperationGenerator.cs (1)
641messageDescription.Body.ReturnValue = wrapperPart;
System\ServiceModel\Description\TypeLoader.cs (2)
1188messageDescription.Body.ReturnValue = CreateParameterPartDescription(returnValueName, defaultNS, 0, returnAttrProvider, returnType); 1345messageDescription.Body.ReturnValue = CreateMessagePartDescription(typeof(void),
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\MessageBuilder.cs (2)
222message.Body.ReturnValue = message.Body.Parts[0]; 227message.Body.ReturnValue = new MessagePartDescription(operation.Name + TypeLoader.ReturnSuffix,
121 references to ReturnValue
System.ServiceModel (68)
System\ServiceModel\Channels\SecurityBindingElementImporter.cs (5)
276if (OperationFormatter.IsValidReturnValue(message.Body.ReturnValue)) 278ValidateExistingOrSetNewProtectionLevel(message.Body.ReturnValue, message, operation, policyContext.Contract, newProtectionLevel); 284if (!OperationFormatter.IsValidReturnValue(message.Body.ReturnValue) || message.Body.Parts.Count == 0) 429if (OperationFormatter.IsValidReturnValue(message.Body.ReturnValue)) 431message.Body.ReturnValue.ResetProtectionLevel();
System\ServiceModel\ComIntegration\DispatchProxy.cs (4)
122if (msgDesc.Body.ReturnValue != null) 124if (string.IsNullOrEmpty(msgDesc.Body.ReturnValue.BaseType)) 127msgDesc.Body.ReturnValue.Type = Type.GetType(msgDesc.Body.ReturnValue.BaseType);
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);
System\ServiceModel\Description\MessageBodyDescription.cs (2)
34if (other.ReturnValue != null) 36this.ReturnValue = other.ReturnValue.Clone();
System\ServiceModel\Description\MessageContractExporter.cs (6)
126ExportAnyMessage(wsdlMessage, description.Body.ReturnValue ?? description.Body.Parts[0]); 975if (OperationFormatter.IsValidReturnValue(description.Body.ReturnValue)) 978Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(description.Body.ReturnValue.Type, out isQueryable); 979XmlQualifiedName typeName = ExportType(dataContractType, description.Body.ReturnValue.Name, operation.Name, out xsdType); 980ExportMessagePart(wsdlMessage, description.Body.ReturnValue, typeName, xsdType, true/*isOptional*/, IsTypeNullable(description.Body.ReturnValue.Type), false/*isOperationInherited*/, dataContractFormatAttribute.Style != OperationFormatStyle.Rpc, description.Body.WrapperNamespace, wrapperSequence, SchemaSet);
System\ServiceModel\Description\MessageContractImporter.cs (4)
502if (isReturn && messageDescription.Body.ReturnValue == null) 508if (isReply && messageDescription.Body.ReturnValue == null) 743if (isReply && messageDescription.Body.ReturnValue == null && !CheckIsRef(requestMessage, parts[0])) 1244if (isReply && description.Body.ReturnValue == null)
System\ServiceModel\Description\MessageDescription.cs (5)
162return (Body.ReturnValue != null && Body.Parts.Count == 0 && Body.ReturnValue.Type == TypeOfUntypedMessage) || 163(Body.ReturnValue == null && Body.Parts.Count == 1 && Body.Parts[0].Type == TypeOfUntypedMessage); 171return !IsTypedMessage && Body.Parts.Count == 0 && (Body.ReturnValue == null || Body.ReturnValue.Type == typeof(void));
System\ServiceModel\Description\OperationGenerator.cs (13)
259if (!this.Oneway && this.Response.Body.ReturnValue != null) 261this.EndMethod.ReturnType = GetParameterType(this.Response.Body.ReturnValue); 262ParameterizedMessageHelper.GenerateMessageParameterAttribute(this.Response.Body.ReturnValue, this.EndMethod.ReturnTypeCustomAttributes, TypeLoader.GetReturnValueName(this.DefaultName), this.DefaultNS); 263AddAdditionalAttributes(this.Response.Body.ReturnValue, this.EndMethod.ReturnTypeCustomAttributes, this.IsEncoded); 334if (isReply && message.Body.ReturnValue != null) 336GenerateBodyPart(0, message.Body.ReturnValue, partCodeGenerator, true, this.IsEncoded, this.DefaultNS); 608if (messageDescription.Body.ReturnValue != null) 610AddWrapperPart(messageDescription.MessageName, this.WrappedBodyTypeGenerator, partGenerator, messageDescription.Body.ReturnValue, wrapperTypeDecl.CustomAttributes); 611protectionLevel = ProtectionLevelHelper.Max(protectionLevel, messageDescription.Body.ReturnValue.ProtectionLevel); 612if (messageDescription.Body.ReturnValue.HasProtectionLevel) 653if (messageDescription.Body.ReturnValue != null) 654defaultNS = messageDescription.Body.ReturnValue.Namespace; 671order = this.Response.Body.ReturnValue != null ? 1 : 0;
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
500returnPart = OperationFormatter.IsValidReturnValue(message.Body.ReturnValue) ? message.Body.ReturnValue : null;
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (3)
131if (OperationFormatter.IsValidReturnValue(body.ReturnValue)) 132GeneratePartType(alreadyExported, body.ReturnValue, isWrapped ? body.WrapperNamespace : body.ReturnValue.Namespace);
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (2)
126if (IsValidReturnValue(messageDescription.Body.ReturnValue)) 127messageInfo.ReturnPart = CreatePartInfo(messageDescription.Body.ReturnValue, dataContractFormatAttribute.Style, serializerFactory);
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (5)
83if (responseMessage.Body.ReturnValue != null && responseMessage.Body.ReturnValue.Type != typeof(void)) 85returnPart = AddToDictionary(dictionary, responseMessage.Body.ReturnValue, isRpc); 320if (responseMessage.Body.ReturnValue != null && !IsTypeSupported(responseMessage.Body.ReturnValue))
System\ServiceModel\Dispatcher\StreamFormatter.cs (6)
36if ((object)streamPart == (object)messageDescription.Body.ReturnValue) 185if (messageDescription.Body.ReturnValue != null && messageDescription.Body.ReturnValue.Type == typeof(Stream)) 197if (OperationFormatter.IsValidReturnValue(messageDescription.Body.ReturnValue)) 200if (messageDescription.Body.ReturnValue.Type == typeof(Stream)) 201return messageDescription.Body.ReturnValue;
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (2)
284SerializeBody(writer, version, messageInfo.BodySerializer, messageDescription.Body.ReturnValue, messageDescription.Body.Parts, returnValue, parameters); 345return DeserializeBody(reader, version, messageInfo.BodySerializer, messageDescription.Body.ReturnValue, messageDescription.Body.Parts, parameters, isRequest);
System\ServiceModel\Security\ChannelProtectionRequirements.cs (3)
273else if (message.Body.ReturnValue != null) 275if (!(message.Body.ReturnValue.GetType().Equals(typeof(MessagePartDescription)))) 280MessagePartDescription desc = message.Body.ReturnValue;
System\ServiceModel\Security\WSTrust.cs (2)
1265if (OperationFormatter.IsValidReturnValue(message.Body.ReturnValue)) 1267message.Body.ReturnValue.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign;
System.ServiceModel.Activities (37)
System\ServiceModel\Activities\ContractValidationHelper.cs (23)
232if (targetMessage.Body.ReturnValue == null) 236else if (!targetMessage.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 238Constraint.AddValidationError(context, new ValidationError(SR2.FirstParameterDoesnotMatchTheReturnValue(declaredMessageType.FullName, targetMessage.Body.ReturnValue.Type.Name, operation.Name, operation.DeclaringContract.Name))); 324if (isResponse && targetMessage.Body.ReturnValue != null && targetMessage.Body.ReturnValue.Type != TypeHelper.VoidType) 330targetPart = targetMessage.Body.ReturnValue; 412bool targetHasReturnValue = isResponse && targetMessageBody.ReturnValue != null && targetMessageBody.ReturnValue.Type != TypeHelper.VoidType; 415if (iterator.MoveNext() && (string)iterator.Key == targetMessageBody.ReturnValue.Name) 418if (argument != null && argument.ArgumentType != targetMessageBody.ReturnValue.Type) 420Constraint.AddValidationError(context, new ValidationError(SR2.FirstParameterDoesnotMatchTheReturnValue(argument.ArgumentType.FullName, targetMessageBody.ReturnValue.Type.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name))); 424else if (parameters.Contains(targetMessageBody.ReturnValue.Name)) 426Constraint.AddValidationError(context, new ValidationError(SR2.ParameterPositionMismatch(targetMessageBody.ReturnValue.Name, targetOperation.Name, targetOperation.DeclaringContract.Name, "0"))); 431Constraint.AddValidationError(context, new ValidationError(SR2.ReturnValueMissing(targetMessageBody.ReturnValue.Type.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name))); 468if (!targetHasReturnValue || targetHasReturnValue && name != targetMessageBody.ReturnValue.Name) 522if ((message.Body.ReturnValue != null && message.Body.ReturnValue.Type.IsDefined(typeof(MessageContractAttribute), false)) 523|| (message.Body.ReturnValue != null && message.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))) 529if (operation.Messages[1].MessageType != null || operation.Messages[1].Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 566if (message.Body.ReturnValue != null && message.Body.ReturnValue.Type != typeof(void)) 568if (!message.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
System\ServiceModel\Activities\MessageBuilder.cs (1)
229message.Body.ReturnValue.Type = TypeHelper.VoidType;
System\ServiceModel\Activities\Receive.cs (5)
599if ((message.Body.ReturnValue != null && message.Body.ReturnValue.Type.IsDefined(typeof(MessageContractAttribute), false)) 600|| (message.Body.ReturnValue != null && message.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))) 606if (operation.Messages[1].MessageType != null || operation.Messages[1].Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
System\ServiceModel\Activities\SendReply.cs (8)
288if (message.Body.ReturnValue != null && message.Body.ReturnValue.Type != typeof(void)) 290if (!message.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 329&& message.Body.ReturnValue != null 330&& message.Body.ReturnValue.Type != typeof(void)) 332Argument returnArgument = InArgument.Create(message.Body.ReturnValue.Type, ArgumentDirection.In); 333content.Parameters.Add(message.Body.ReturnValue.Name, (InArgument)returnArgument); 354content.DeclaredMessageType = message.Body.ReturnValue.Type;
System.ServiceModel.Web (16)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (3)
133if (responseMessage.Body.ReturnValue != null && responseMessage.Body.ReturnValue.Type != null) 136serviceData.ProcessClientType(ReplaceMessageWithObject(responseMessage.Body.ReturnValue.Type), false, true);
System\ServiceModel\Description\WebHttpBehavior.cs (9)
434return (message.Body.ReturnValue != null && message.Body.Parts.Count == 0 && message.Body.ReturnValue.Type == typeof(Message)) || 435(message.Body.ReturnValue == null && message.Body.Parts.Count == 1 && message.Body.Parts[0].Type == typeof(Message)); 971if (message.Body.ReturnValue != null && message.Body.ReturnValue.Type != typeof(void)) 973type = message.Body.ReturnValue.Type; 1015if (message.Body.ReturnValue != null && typeof(Stream) == message.Body.ReturnValue.Type) 1022type = message.Body.ReturnValue.Type;
System\ServiceModel\Dispatcher\HelpPage.cs (1)
238return (od.Messages[1].Body.ReturnValue.Type);
System\ServiceModel\Web\WebServiceHost.cs (3)
321if (message.Body.ReturnValue == null || IsVoidPart(message.Body.ReturnValue.Type)) 325else if (IsStreamPart(message.Body.ReturnValue.Type))