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