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