forked from DigDes/SoapCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSoapEncoderOptions.cs
More file actions
27 lines (21 loc) · 891 Bytes
/
SoapEncoderOptions.cs
File metadata and controls
27 lines (21 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.ServiceModel.Channels;
using System.Text;
using System.Xml;
namespace SoapCore
{
public class SoapEncoderOptions
{
public MessageVersion MessageVersion { get; set; } = MessageVersion.Soap11;
public Encoding WriteEncoding { get; set; } = DefaultEncodings.UTF8;
public bool OverwriteResponseContentType { get; set; }
public XmlDictionaryReaderQuotas ReaderQuotas { get; set; } = XmlDictionaryReaderQuotas.Max;
public string BindingName { get; set; } = null;
public string PortName { get; set; } = null;
public XmlNamespaceManager XmlNamespaceOverrides { get; set; } = null;
public int MaxSoapHeaderSize { get; set; } = MessageEncoder.SoapMessageEncoderDefaults.MaxSoapHeaderSizeDefault;
internal static SoapEncoderOptions[] ToArray(SoapEncoderOptions options)
{
return options is null ? null : new[] { options };
}
}
}