76 references to OperationFormatStyle
dotnet-svcutil-lib (76)
FrameworkFork\System.ServiceModel\System\ServiceModel\DataContractFormatAttribute.cs (2)
13private OperationFormatStyle _style; 14public OperationFormatStyle Style
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationBehavior.cs (1)
115return new PrimitiveOperationFormatter(operation, _dataContractFormatAttribute.Style == OperationFormatStyle.Rpc);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
79OperationFormatStyle style = dataContractFormatAttribute.Style;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (47)
258if (operationInfo.Style == OperationFormatStyle.Rpc) 291OperationFormatStyle style = OperationFormatStyle.Document; 302OperationFormatStyle operationStyle = GetStyle(operationBinding); 375OperationFormatStyle? inferredOperationStyle = null; 387OperationFormatStyle? inferredMessageStyle; 396&& inferredMessageStyle.Value == OperationFormatStyle.Document)) 405style = inferredOperationStyle ?? OperationFormatStyle.Document; 408if (inferredOperationStyle.Value != style && inferredOperationStyle.Value == OperationFormatStyle.Document) 415private bool CanImportMessage(WsdlNS.Message wsdlMessage, string operationName, out OperationFormatStyle? inferredStyle, ref bool areAllMessagesWrapped) 424inferredStyle = OperationFormatStyle.Document; 433inferredStyle = OperationFormatStyle.Document; 446OperationFormatStyle style; 518private static StyleAndUse GetStyleAndUse(OperationFormatStyle style, bool isEncoded) 520if (style == OperationFormatStyle.Document) 647private bool CanImportStream(WsdlNS.MessagePart part, out OperationFormatStyle? style, ref bool areAllMessagesWrapped) 649style = OperationFormatStyle.Document; 665style = OperationFormatStyle.Rpc; 670style = OperationFormatStyle.Document; 1191private static OperationFormatStyle GetStyle(WsdlNS.OperationBinding operationBinding) 1203return (style == WsdlNS.SoapBindingStyle.Rpc) ? OperationFormatStyle.Rpc : OperationFormatStyle.Document; 1279private bool CanImportMessageBinding(WsdlNS.MessageBinding messageBinding, WsdlNS.Message wsdlMessage, OperationFormatStyle style, out bool isEncoded) 1347private bool CanImportFaultBinding(WsdlNS.FaultBinding faultBinding, OperationFormatStyle style, out bool isFaultEncoded) 1379private bool CanImportMessageBodyBinding(WsdlNS.SoapBodyBinding bodyBinding, OperationFormatStyle style, out bool isEncoded) 1385private bool CanImportMessageHeaderBinding(WsdlNS.SoapHeaderBinding headerBinding, WsdlNS.Message wsdlMessage, OperationFormatStyle style, out bool isEncoded) 1391OperationFormatStyle headerStyle; 1399private void ImportMessageBinding(WsdlNS.MessageBinding messageBinding, WsdlNS.Message wsdlMessage, MessageDescription description, OperationFormatStyle style, bool isEncoded) 1420private void ImportMessageBodyBinding(WsdlNS.SoapBodyBinding bodyBinding, WsdlNS.Message wsdlMessage, MessageDescription description, OperationFormatStyle style, bool isEncoded, string operationName) 1422if (style == OperationFormatStyle.Rpc && bodyBinding.Namespace != null) 1427private void ImportMessageHeaderBinding(WsdlNS.SoapHeaderBinding headerBinding, WsdlNS.Message wsdlMessage, MessageDescription description, OperationFormatStyle style, bool isEncoded, string operationName) 1459internal bool CanImportMessagePart(WsdlNS.MessagePart part, out OperationFormatStyle style) 1461style = OperationFormatStyle.Document; 1466style = OperationFormatStyle.Rpc; 1527internal abstract bool CanImportStyleAndUse(OperationFormatStyle style, bool isEncoded); 1528internal abstract void ValidateStyleAndUse(OperationFormatStyle style, bool isEncoded, string operationName); 1536internal abstract void SetOperationStyle(OperationDescription operation, OperationFormatStyle style); 1857internal override bool CanImportStyleAndUse(OperationFormatStyle style, bool isEncoded) 1862internal override void ValidateStyleAndUse(OperationFormatStyle style, bool isEncoded, string operationName) 1868internal override void SetOperationStyle(OperationDescription operation, OperationFormatStyle style) 2101internal override bool CanImportStyleAndUse(OperationFormatStyle style, bool isEncoded) 2107internal override void ValidateStyleAndUse(OperationFormatStyle style, bool isEncoded, string operationName) 2109if (isEncoded && style != OperationFormatStyle.Rpc) 2126internal override void SetOperationStyle(OperationDescription operation, OperationFormatStyle style) 2160private OperationFormatStyle _style; 2164internal OperationInfo(OperationFormatStyle style, bool isEncoded, bool areAllMessagesWrapped) 2170internal OperationFormatStyle Style { get { return _style; } }
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (10)
66internal void GenerateOperation(OperationContractGenerationContext context, ref OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes) 96private readonly OperationFormatStyle _style; 122internal MethodSignatureGenerator(OperationGenerator parent, OperationContractGenerationContext context, OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes) 134_defaultNS = (style == OperationFormatStyle.Rpc) ? string.Empty : _contractNS; 148internal void GenerateSyncSignature(ref OperationFormatStyle style) 156internal void GenerateAsyncSignature(ref OperationFormatStyle style) 164private void GenerateOperationSignatures(ref OperationFormatStyle style) 268private void GenerateTypedMessageOperation(bool hideFromEditor, ref OperationFormatStyle style) 296style = OperationFormatStyle.Document; 946internal void GenerateTaskSignature(ref OperationFormatStyle style)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
246OperationFormatter.Validate(operation, attr.Style == OperationFormatStyle.Rpc, false/*IsEncoded*/); 253this.IsRpc = (attr.Style == OperationFormatStyle.Rpc);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
144OperationFormatStyle style = xmlSerializerFormatAttribute.Style;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (4)
75: base(description, dataContractFormatAttribute.Style == OperationFormatStyle.Rpc, false/*isEncoded*/) 126messageInfo.HeaderParts[i] = CreatePartInfo(headerDescription, OperationFormatStyle.Document, serializerFactory); 136private PartInfo CreatePartInfo(MessagePartDescription part, OperationFormatStyle style, DataContractSerializerOperationBehavior serializerFactory) 138string ns = (style == OperationFormatStyle.Rpc || part.Namespace == null) ? string.Empty : part.Namespace;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
32base(description, xmlSerializerFormatAttribute.Style == OperationFormatStyle.Rpc, false/*isEncoded*/)
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationFormatStyle.cs (3)
17static public bool IsDefined(OperationFormatStyle x) 20x == OperationFormatStyle.Document || 21x == OperationFormatStyle.Rpc ||
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlSerializerFormatAttribute.cs (4)
13private OperationFormatStyle _style; 23public OperationFormatStyle Style 42Style = OperationFormatStyle.Rpc; 52static internal void ValidateOperationFormatStyle(OperationFormatStyle value)