1 write to _request
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
136
_request
= context.Operation.Messages[0];
27 references to _request
dotnet-svcutil-lib (27)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (27)
281
if (!
_request
.IsUntypedMessage)
283
CodeTypeReference typedReqMessageRef = GenerateTypedMessageHeaderAndReturnValueParts(ns, _defaultName + "Request",
_request
, false /*isReply*/, hideFromEditor, ref _isNewRequest, out _beginPartCodeGenerator);
345
bool isRequestMessage =
_request
!= null &&
_request
.IsUntypedMessage;
350
else if (isResponseMessage &&
_request
== null || IsEmpty(
_request
))
368
bool isRequestMessage =
_request
!= null &&
_request
.IsUntypedMessage;
376
bool isRequestMessage =
_request
!= null &&
_request
.IsUntypedMessage;
387
if (
_request
!= null)
390
CustomAttributeHelper.FindOrCreateAttributeDeclaration<OperationContractAttribute>(_method.CustomAttributes), OperationContractAttribute.ActionPropertyName,
_request
.Action);
661
foreach (MessagePartDescription setting in
_request
.Body.Parts)
887
if (parent.
_request
!= null && parent.
_request
.HasProtectionLevel)
889
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_MessageHasProtectionLevel, parent.
_request
.Action == null ? "" : parent.
_request
.Action)));
899
if (parent.
_request
.Body.WrapperName == null || (parent._response != null && parent._response.Body.WrapperName == null))
902
if (!StringEqualOrNull(parent.
_request
.Body.WrapperNamespace, parent._contractNS))
903
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_DifferentWrapperNs, parent.
_request
.MessageName, parent.
_request
.Body.WrapperNamespace, parent._contractNS)));
906
if (!String.Equals(parent.
_request
.Body.WrapperName, defaultName.EncodedName, StringComparison.Ordinal))
907
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_DifferentWrapperName, parent.
_request
.MessageName, parent.
_request
.Body.WrapperName, defaultName.EncodedName)));
921
if (parent.
_request
.Headers.Count > 0)
925
parent._context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent.
_request
.MessageName), true/*isWarning*/));
928
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreUnsupported, parent.
_request
.MessageName)));