2 writes to MessageType
System.ServiceModel (2)
System\ServiceModel\Description\MessageDescription.cs (1)
54
this.
MessageType
= other.MessageType;
System\ServiceModel\Description\TypeLoader.cs (1)
1238
messageDescription.
MessageType
= typedMessageType;
38 references to MessageType
System.ServiceModel (10)
System\ServiceModel\Description\MessageContractExporter.cs (2)
441
typedMessageKey = new TypedMessageKey(message.
MessageType
, operation.DeclaringContract.Namespace, this.GetExtensionData());
483
typedMessageKey = new TypedMessageKey(message.
MessageType
, operation.DeclaringContract.Namespace, GetExtensionData());
System\ServiceModel\Description\MessageDescription.cs (1)
54
this.MessageType = other.
MessageType
;
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (5)
432
key = message.
MessageType
.FullName + ":" + IsEncoded + ":" + IsRpc;
466
if (message.
MessageType
!= null)
467
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxHeaderNameMismatchInMessageContract, message.
MessageType
, header.MemberInfo.Name, header.Name, headerName)));
473
if (message.
MessageType
!= null)
474
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxHeaderNamespaceMismatchInMessageContract, message.
MessageType
, header.MemberInfo.Name, header.Namespace, headerNs)));
System\ServiceModel\Dispatcher\OperationFormatter.cs (2)
118
object typeMessageInstance = CreateTypedMessageInstance(replyDescription.
MessageType
);
185
object typeMessageInstance = CreateTypedMessageInstance(requestDescription.
MessageType
);
System.ServiceModel.Activities (20)
System\ServiceModel\Activities\ContractValidationHelper.cs (10)
208
if (targetMessage.
MessageType
!= null )
210
if (declaredMessageType != targetMessage.
MessageType
)
212
Constraint.AddValidationError(context, new ValidationError(SR2.PropertyMismatch(declaredMessageType.ToString(), "type", targetMessage.
MessageType
.ToString(), operation.Name, operation.DeclaringContract.Name)));
488
if (message.
MessageType
== null)
529
if (operation.Messages[1].
MessageType
!= null || operation.Messages[1].Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
564
if (message.
MessageType
== null)
577
if (message.
MessageType
== null)
603
if (message.
MessageType
!= null && message.
MessageType
.IsDefined(typeof(MessageContractAttribute), false))
607
else if (operation.Messages[0].
MessageType
!= null)
System\ServiceModel\Activities\Receive.cs (4)
529
if (message.
MessageType
== null)
581
if (message.
MessageType
!= null)
583
content.DeclaredMessageType = message.
MessageType
;
606
if (operation.Messages[1].
MessageType
!= null || operation.Messages[1].Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
System\ServiceModel\Activities\SendReply.cs (6)
286
if (message.
MessageType
== null)
299
if (message.
MessageType
== null)
364
if (message.
MessageType
!= null && message.
MessageType
.IsDefined(typeof(MessageContractAttribute), false))
368
sendMessageContent.DeclaredMessageType = message.
MessageType
;
374
else if (operation.Messages[0].
MessageType
!= null)
System.ServiceModel.Web (8)
System\ServiceModel\Description\WebHttpBehavior.cs (6)
425
return (message != null && message.
MessageType
!= null);
858
SR2.GetString(SR2.GETCannotHaveMCParameter, operationDescription.Name, operationDescription.DeclaringContract.Name, operationDescription.Messages[0].
MessageType
.Name)));
1213
SR2.GetString(SR2.GETCannotHaveMCParameter, operation.Name, operation.DeclaringContract.Name, operation.Messages[0].
MessageType
.Name)));
1251
new InvalidOperationException(System.ServiceModel.SR2.GetString(System.ServiceModel.SR2.StreamBodyMemberNotSupported, this.GetType().ToString(), contractName, opName, md.
MessageType
.ToString(), description.Name)));
1273
SR2.GetString(SR2.InvalidMessageContractWithoutWrapperName, opName, contractName, md.
MessageType
)));
1277
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.MCAtMostOneRequestBodyParameterAllowedForUnwrappedMessages, opName, contractName, md.
MessageType
)));
System\ServiceModel\Dispatcher\HelpPage.cs (2)
229
return od.Messages[1].
MessageType
;
254
return od.Messages[0].
MessageType
;