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