1 write to Request
System.ServiceModel (1)
System\ServiceModel\Description\OperationGenerator.cs (1)
136this.Request = context.Operation.Messages[0];
27 references to Request
System.ServiceModel (27)
System\ServiceModel\Description\OperationGenerator.cs (27)
283if (!this.Request.IsUntypedMessage) 285CodeTypeReference typedReqMessageRef = GenerateTypedMessageHeaderAndReturnValueParts(ns, this.DefaultName + "Request", this.Request, false /*isReply*/, hideFromEditor, ref this.IsNewRequest, out this.BeginPartCodeGenerator); 347bool isRequestMessage = this.Request != null && this.Request.IsUntypedMessage; 352else if (isResponseMessage && Request == null || IsEmpty(Request)) 370bool isRequestMessage = this.Request != null && this.Request.IsUntypedMessage; 378bool isRequestMessage = this.Request != null && this.Request.IsUntypedMessage; 389if (this.Request != null) 392CustomAttributeHelper.FindOrCreateAttributeDeclaration<OperationContractAttribute>(this.Method.CustomAttributes), OperationContractAttribute.ActionPropertyName, this.Request.Action); 665foreach (MessagePartDescription setting in this.Request.Body.Parts) 894if (parent.Request != null && parent.Request.HasProtectionLevel) 896throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(SR.GetString(SR.SFxCannotImportAsParameters_MessageHasProtectionLevel, parent.Request.Action == null ? "" : parent.Request.Action))); 906if (parent.Request.Body.WrapperName == null || (parent.Response != null && parent.Response.Body.WrapperName == null)) 909if (!StringEqualOrNull(parent.Request.Body.WrapperNamespace, parent.ContractNS)) 910throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(SR.GetString(SR.SFxCannotImportAsParameters_DifferentWrapperNs, parent.Request.MessageName, parent.Request.Body.WrapperNamespace, parent.ContractNS))); 913if (!String.Equals(parent.Request.Body.WrapperName, defaultName.EncodedName, StringComparison.Ordinal)) 914throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(SR.GetString(SR.SFxCannotImportAsParameters_DifferentWrapperName, parent.Request.MessageName, parent.Request.Body.WrapperName, defaultName.EncodedName))); 928if (parent.Request.Headers.Count > 0) 932parent.Context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(SR.GetString(SR.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent.Request.MessageName), true/*isWarning*/)); 935throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(SR.GetString(SR.SFxCannotImportAsParameters_HeadersAreUnsupported, parent.Request.MessageName)));