1 write to _response
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
137
_response
= _oneway ? null : context.Operation.Messages[1];
35 references to _response
dotnet-svcutil-lib (35)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (35)
145
Fx.Assert(_oneway == (
_response
== null), "OperationContractGenerationContext.Operation cannot contain a null response message when the operation is not one-way");
257
if (!_oneway &&
_response
.Body.ReturnValue != null)
259
_endMethod.ReturnType = GetParameterType(
_response
.Body.ReturnValue);
260
ParameterizedMessageHelper.GenerateMessageParameterAttribute(
_response
.Body.ReturnValue, _endMethod.ReturnTypeCustomAttributes, TypeLoader.GetReturnValueName(_defaultName), _defaultNS);
261
AddAdditionalAttributes(
_response
.Body.ReturnValue, _endMethod.ReturnTypeCustomAttributes, _isEncoded);
287
if (!_oneway && !
_response
.IsUntypedMessage)
289
CodeTypeReference typedRespMessageRef = GenerateTypedMessageHeaderAndReturnValueParts(ns, _defaultName + "Response",
_response
, true /*isReply*/, hideFromEditor, ref _isNewResponse, out _endPartCodeGenerator);
346
bool isResponseMessage =
_response
!= null &&
_response
.IsUntypedMessage;
352
else if (isRequestMessage &&
_response
== null || IsEmpty(
_response
))
369
bool isResponseMessage =
_response
!= null &&
_response
.IsUntypedMessage;
377
bool isResponseMessage =
_response
!= null &&
_response
.IsUntypedMessage;
392
if (
_response
!= null)
395
CustomAttributeHelper.FindOrCreateAttributeDeclaration<OperationContractAttribute>(_method.CustomAttributes), OperationContractAttribute.ReplyActionPropertyName,
_response
.Action);
667
order =
_response
.Body.ReturnValue != null ? 1 : 0;
668
foreach (MessagePartDescription setting in
_response
.Body.Parts)
891
if (parent.
_response
!= null && parent.
_response
.HasProtectionLevel)
893
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_MessageHasProtectionLevel, parent.
_response
.Action == null ? "" : parent.
_response
.Action)));
899
if (parent._request.Body.WrapperName == null || (parent.
_response
!= null && parent.
_response
.Body.WrapperName == null))
909
if (parent.
_response
!= null)
911
if (!StringEqualOrNull(parent.
_response
.Body.WrapperNamespace, parent._contractNS))
912
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_DifferentWrapperNs, parent.
_response
.MessageName, parent.
_response
.Body.WrapperNamespace, parent._contractNS)));
914
if (!String.Equals(parent.
_response
.Body.WrapperName, TypeLoader.GetBodyWrapperResponseName(defaultName).EncodedName, StringComparison.Ordinal))
915
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_DifferentWrapperName, parent.
_response
.MessageName, parent.
_response
.Body.WrapperName, defaultName.EncodedName)));
931
if (!parent._oneway && parent.
_response
.Headers.Count > 0)
934
parent._context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent.
_response
.MessageName), true/*isWarning*/));
936
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreUnsupported, parent.
_response
.MessageName)));