86 references to OperationFormatStyle
System.ServiceModel (85)
System\ServiceModel\DataContractFormatAttribute.cs (2)
12
OperationFormatStyle
style;
13
public
OperationFormatStyle
Style
System\ServiceModel\Description\DataContractSerializerOperationBehavior.cs (1)
124
return new PrimitiveOperationFormatter(operation, dataContractFormatAttribute.Style ==
OperationFormatStyle
.Rpc);
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
79
OperationFormatStyle
style = dataContractFormatAttribute.Style;
System\ServiceModel\Description\MessageContractExporter.cs (8)
756
isRpc = dataContractSerializerBehavior.DataContractFormatAttribute.Style ==
OperationFormatStyle
.Rpc;
768
isRpc = xmlSerializerBehavior.XmlSerializerFormatAttribute.Style ==
OperationFormatStyle
.Rpc;
920
return ((DataContractSerializerOperationBehavior)extension).DataContractFormatAttribute.Style ==
OperationFormatStyle
.Rpc;
972
if (dataContractFormatAttribute.Style ==
OperationFormatStyle
.Document && isWrapped)
980
ExportMessagePart(wsdlMessage, description.Body.ReturnValue, typeName, xsdType, true/*isOptional*/, IsTypeNullable(description.Body.ReturnValue.Type), false/*isOperationInherited*/, dataContractFormatAttribute.Style !=
OperationFormatStyle
.Rpc, description.Body.WrapperNamespace, wrapperSequence, SchemaSet);
988
ExportMessagePart(wsdlMessage, bodyPart, typeName, xsdType, true/*isOptional*/, IsTypeNullable(bodyPart.Type), false/*isOperationInherited*/, dataContractFormatAttribute.Style !=
OperationFormatStyle
.Rpc, description.Body.WrapperNamespace, wrapperSequence, SchemaSet);
990
if (dataContractFormatAttribute.Style ==
OperationFormatStyle
.Rpc)
1042
return ((XmlSerializerOperationBehavior)extension).XmlSerializerFormatAttribute.Style ==
OperationFormatStyle
.Rpc;
System\ServiceModel\Description\MessageContractImporter.cs (47)
269
if (operationInfo.Style ==
OperationFormatStyle
.Rpc)
302
OperationFormatStyle
style =
OperationFormatStyle
.Document;
313
OperationFormatStyle
operationStyle = GetStyle(operationBinding);
386
OperationFormatStyle
? inferredOperationStyle = null;
398
OperationFormatStyle
? inferredMessageStyle;
407
&& inferredMessageStyle.Value ==
OperationFormatStyle
.Document))
416
style = inferredOperationStyle ??
OperationFormatStyle
.Document;
419
if (inferredOperationStyle.Value != style && inferredOperationStyle.Value ==
OperationFormatStyle
.Document)
426
bool CanImportMessage(WsdlNS.Message wsdlMessage, string operationName, out
OperationFormatStyle
? inferredStyle, ref bool areAllMessagesWrapped)
435
inferredStyle =
OperationFormatStyle
.Document;
444
inferredStyle =
OperationFormatStyle
.Document;
457
OperationFormatStyle
style;
529
static StyleAndUse GetStyleAndUse(
OperationFormatStyle
style, bool isEncoded)
531
if (style ==
OperationFormatStyle
.Document)
658
bool CanImportStream(WsdlNS.MessagePart part, out
OperationFormatStyle
? style, ref bool areAllMessagesWrapped)
660
style =
OperationFormatStyle
.Document;
676
style =
OperationFormatStyle
.Rpc;
681
style =
OperationFormatStyle
.Document;
1203
static
OperationFormatStyle
GetStyle(WsdlNS.OperationBinding operationBinding)
1215
return (style == WsdlNS.SoapBindingStyle.Rpc) ?
OperationFormatStyle
.Rpc :
OperationFormatStyle
.Document;
1291
bool CanImportMessageBinding(WsdlNS.MessageBinding messageBinding, WsdlNS.Message wsdlMessage,
OperationFormatStyle
style, out bool isEncoded)
1359
private bool CanImportFaultBinding(WsdlNS.FaultBinding faultBinding,
OperationFormatStyle
style, out bool isFaultEncoded)
1391
bool CanImportMessageBodyBinding(WsdlNS.SoapBodyBinding bodyBinding,
OperationFormatStyle
style, out bool isEncoded)
1397
bool CanImportMessageHeaderBinding(WsdlNS.SoapHeaderBinding headerBinding, WsdlNS.Message wsdlMessage,
OperationFormatStyle
style, out bool isEncoded)
1403
OperationFormatStyle
headerStyle;
1411
void ImportMessageBinding(WsdlNS.MessageBinding messageBinding, WsdlNS.Message wsdlMessage, MessageDescription description,
OperationFormatStyle
style, bool isEncoded)
1432
void ImportMessageBodyBinding(WsdlNS.SoapBodyBinding bodyBinding, WsdlNS.Message wsdlMessage, MessageDescription description,
OperationFormatStyle
style, bool isEncoded, string operationName)
1434
if (style ==
OperationFormatStyle
.Rpc && bodyBinding.Namespace != null)
1439
void ImportMessageHeaderBinding(WsdlNS.SoapHeaderBinding headerBinding, WsdlNS.Message wsdlMessage, MessageDescription description,
OperationFormatStyle
style, bool isEncoded, string operationName)
1471
internal bool CanImportMessagePart(WsdlNS.MessagePart part, out
OperationFormatStyle
style)
1473
style =
OperationFormatStyle
.Document;
1478
style =
OperationFormatStyle
.Rpc;
1539
internal abstract bool CanImportStyleAndUse(
OperationFormatStyle
style, bool isEncoded);
1540
internal abstract void ValidateStyleAndUse(
OperationFormatStyle
style, bool isEncoded, string operationName);
1548
internal abstract void SetOperationStyle(OperationDescription operation,
OperationFormatStyle
style);
1869
internal override bool CanImportStyleAndUse(
OperationFormatStyle
style, bool isEncoded)
1874
internal override void ValidateStyleAndUse(
OperationFormatStyle
style, bool isEncoded, string operationName)
1880
internal override void SetOperationStyle(OperationDescription operation,
OperationFormatStyle
style)
2114
internal override bool CanImportStyleAndUse(
OperationFormatStyle
style, bool isEncoded)
2120
internal override void ValidateStyleAndUse(
OperationFormatStyle
style, bool isEncoded, string operationName)
2122
if (isEncoded && style !=
OperationFormatStyle
.Rpc)
2139
internal override void SetOperationStyle(OperationDescription operation,
OperationFormatStyle
style)
2173
OperationFormatStyle
style;
2177
internal OperationInfo(
OperationFormatStyle
style, bool isEncoded, bool areAllMessagesWrapped)
2183
internal
OperationFormatStyle
Style { get { return style; } }
System\ServiceModel\Description\OperationGenerator.cs (10)
66
internal void GenerateOperation(OperationContractGenerationContext context, ref
OperationFormatStyle
style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes)
96
readonly
OperationFormatStyle
Style;
122
internal MethodSignatureGenerator(OperationGenerator parent, OperationContractGenerationContext context,
OperationFormatStyle
style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes)
134
this.DefaultNS = (style ==
OperationFormatStyle
.Rpc) ? string.Empty : this.ContractNS;
148
internal void GenerateSyncSignature(ref
OperationFormatStyle
style)
156
internal void GenerateAsyncSignature(ref
OperationFormatStyle
style)
164
void GenerateOperationSignatures(ref
OperationFormatStyle
style)
270
void GenerateTypedMessageOperation(bool hideFromEditor, ref
OperationFormatStyle
style)
298
style =
OperationFormatStyle
.Document;
954
internal void GenerateTaskSignature(ref
OperationFormatStyle
style)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
291
OperationFormatter.Validate(operation, attr.Style ==
OperationFormatStyle
.Rpc, attr.IsEncoded);
299
this.IsRpc = (attr.Style ==
OperationFormatStyle
.Rpc);
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
143
OperationFormatStyle
style = xmlSerializerFormatAttribute.Style;
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (4)
89
: base(description, dataContractFormatAttribute.Style ==
OperationFormatStyle
.Rpc, false/*isEncoded*/)
140
messageInfo.HeaderParts[i] = CreatePartInfo(headerDescription,
OperationFormatStyle
.Document, serializerFactory);
161
PartInfo CreatePartInfo(MessagePartDescription part,
OperationFormatStyle
style, DataContractSerializerOperationBehavior serializerFactory)
163
string ns = (style ==
OperationFormatStyle
.Rpc || part.Namespace == null) ? string.Empty : part.Namespace;
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (2)
33
base(description, xmlSerializerFormatAttribute.Style ==
OperationFormatStyle
.Rpc, xmlSerializerFormatAttribute.IsEncoded)
35
if (xmlSerializerFormatAttribute.IsEncoded && xmlSerializerFormatAttribute.Style !=
OperationFormatStyle
.Rpc)
System\ServiceModel\OperationFormatStyle.cs (3)
15
static public bool IsDefined(
OperationFormatStyle
x)
18
x ==
OperationFormatStyle
.Document ||
19
x ==
OperationFormatStyle
.Rpc ||
System\ServiceModel\XmlSerializerFormatAttribute.cs (4)
12
OperationFormatStyle
style;
22
public
OperationFormatStyle
Style
41
Style =
OperationFormatStyle
.Rpc;
51
static internal void ValidateOperationFormatStyle(
OperationFormatStyle
value)
System.ServiceModel.Web (1)
System\ServiceModel\Description\WebHttpBehavior.cs (1)
1260
if (xsob != null && (xsob.XmlSerializerFormatAttribute.Style ==
OperationFormatStyle
.Rpc || xsob.XmlSerializerFormatAttribute.IsEncoded))