1 write to Operation
System.ServiceModel (1)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
295
this.
Operation
= operation;
29 references to Operation
System.ServiceModel (29)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (29)
114
return new XmlSerializerOperationFormatter(reflector.
Operation
, reflector.Attribute, reflector.Request, reflector.Reply);
188
MessageContractExporter.ExportMessageBinding(exporter, endpointContext, typeof(XmlSerializerMessageContractExporter), this.reflector.
Operation
);
197
new XmlSerializerMessageContractExporter(exporter, contractContext, this.reflector.
Operation
, this).ExportMessageContract();
347
get { return this.
Operation
.DeclaringContract.Name; }
352
get { return this.
Operation
.DeclaringContract.Namespace; }
386
foreach (Type knownType in
Operation
.KnownTypes)
389
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxKnownTypeNull,
Operation
.Name)));
392
this.request = CreateMessageInfo(this.
Operation
.Messages[0], ":Request");
393
if (this.request != null && this.IsRpc && this.
Operation
.IsValidateRpcWrapperName && this.request.BodyMapping.XsdElementName != this.
Operation
.Name)
394
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxRpcMessageBodyPartNameInvalid,
Operation
.Name, this.
Operation
.Messages[0].MessageName, request.BodyMapping.XsdElementName, this.
Operation
.Name)));
397
this.reply = CreateMessageInfo(this.
Operation
.Messages[1], ":Response");
398
XmlName responseName = TypeLoader.GetBodyWrapperResponseName(this.
Operation
.Name);
399
if (this.reply != null && this.IsRpc && this.
Operation
.IsValidateRpcWrapperName && this.reply.BodyMapping.XsdElementName != responseName.EncodedName)
400
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxRpcMessageBodyPartNameInvalid,
Operation
.Name, this.
Operation
.Messages[1].MessageName, reply.BodyMapping.XsdElementName, responseName.EncodedName)));
412
for (int i = 0; i < this.
Operation
.Faults.Count; i++)
414
FaultDescription fault = this.
Operation
.Faults[i];
415
FaultContractInfo faultContractInfo = new FaultContractInfo(fault.Action, fault.DetailType, fault.ElementName, fault.Namespace, this.
Operation
.KnownTypes);
469
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxHeaderNameMismatchInOperation, this.
Operation
.Name, this.
Operation
.DeclaringContract.Name, this.
Operation
.DeclaringContract.Namespace, header.Name, headerName)));
476
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxHeaderNamespaceMismatchInOperation, this.
Operation
.Name, this.
Operation
.DeclaringContract.Name, this.
Operation
.DeclaringContract.Namespace, header.Namespace, headerNs)));
529
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxRpcMessageMustHaveASingleBody,
Operation
.Name, message.MessageName)));
621
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxFaultTypeAnonymous, this.
Operation
.Name, fault.DetailType.FullName)));