1 write to Response
System.ServiceModel (1)
System\ServiceModel\Description\OperationGenerator.cs (1)
137this.Response = this.Oneway ? null : context.Operation.Messages[1];
35 references to Response
System.ServiceModel (35)
System\ServiceModel\Description\OperationGenerator.cs (35)
145Fx.Assert(this.Oneway == (this.Response == null), "OperationContractGenerationContext.Operation cannot contain a null response message when the operation is not one-way"); 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); 289if (!this.Oneway && !this.Response.IsUntypedMessage) 291CodeTypeReference typedRespMessageRef = GenerateTypedMessageHeaderAndReturnValueParts(ns, this.DefaultName + "Response", this.Response, true /*isReply*/, hideFromEditor, ref this.IsNewResponse, out this.EndPartCodeGenerator); 348bool isResponseMessage = this.Response != null && this.Response.IsUntypedMessage; 354else if (isRequestMessage && Response == null || IsEmpty(Response)) 371bool isResponseMessage = this.Response != null && this.Response.IsUntypedMessage; 379bool isResponseMessage = this.Response != null && this.Response.IsUntypedMessage; 394if (this.Response != null) 397CustomAttributeHelper.FindOrCreateAttributeDeclaration<OperationContractAttribute>(this.Method.CustomAttributes), OperationContractAttribute.ReplyActionPropertyName, this.Response.Action); 671order = this.Response.Body.ReturnValue != null ? 1 : 0; 672foreach (MessagePartDescription setting in this.Response.Body.Parts) 898if (parent.Response != null && parent.Response.HasProtectionLevel) 900throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(SR.GetString(SR.SFxCannotImportAsParameters_MessageHasProtectionLevel, parent.Response.Action == null ? "" : parent.Response.Action))); 906if (parent.Request.Body.WrapperName == null || (parent.Response != null && parent.Response.Body.WrapperName == null)) 916if (parent.Response != null) 918if (!StringEqualOrNull(parent.Response.Body.WrapperNamespace, parent.ContractNS)) 919throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(SR.GetString(SR.SFxCannotImportAsParameters_DifferentWrapperNs, parent.Response.MessageName, parent.Response.Body.WrapperNamespace, parent.ContractNS))); 921if (!String.Equals(parent.Response.Body.WrapperName, TypeLoader.GetBodyWrapperResponseName(defaultName).EncodedName, StringComparison.Ordinal)) 922throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(SR.GetString(SR.SFxCannotImportAsParameters_DifferentWrapperName, parent.Response.MessageName, parent.Response.Body.WrapperName, defaultName.EncodedName))); 938if (!parent.Oneway && parent.Response.Headers.Count > 0) 941parent.Context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(SR.GetString(SR.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent.Response.MessageName), true/*isWarning*/)); 943throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(SR.GetString(SR.SFxCannotImportAsParameters_HeadersAreUnsupported, parent.Response.MessageName)));