Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MtomMessageEncodingBindingElement to reference assembly #4730

Merged
merged 1 commit into from
Oct 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ namespace System.ServiceModel.Channels
{
public sealed class MtomMessageEncodingBindingElement : MessageEncodingBindingElement
{
int _maxReadPoolSize;
int _maxWritePoolSize;
XmlDictionaryReaderQuotas _readerQuotas;
int _maxBufferSize;
Encoding _writeEncoding;
MessageVersion _messageVersion;
private int _maxReadPoolSize;
private int _maxWritePoolSize;
private XmlDictionaryReaderQuotas _readerQuotas;
private int _maxBufferSize;
private Encoding _writeEncoding;
private MessageVersion _messageVersion;

public MtomMessageEncodingBindingElement() : this(MessageVersion.Default, TextEncoderDefaults.Encoding) { }

Expand All @@ -40,7 +40,7 @@ public MtomMessageEncodingBindingElement(MessageVersion messageVersion, Encoding
_writeEncoding = writeEncoding;
}

MtomMessageEncodingBindingElement(MtomMessageEncodingBindingElement elementToBeCloned)
private MtomMessageEncodingBindingElement(MtomMessageEncodingBindingElement elementToBeCloned)
: base(elementToBeCloned)
{
_maxReadPoolSize = elementToBeCloned._maxReadPoolSize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,25 @@ internal MessageVersion() { }
public override int GetHashCode() { return default; }
public override string ToString() { return default; }
}
public sealed class MtomMessageEncodingBindingElement : MessageEncodingBindingElement
{
public MtomMessageEncodingBindingElement() { }
public MtomMessageEncodingBindingElement(MessageVersion messageVersion, System.Text.Encoding writeEncoding) { }
[System.ComponentModel.DefaultValueAttribute(64)]
public int MaxReadPoolSize { get; set; }
[System.ComponentModel.DefaultValueAttribute(16)]
public int MaxWritePoolSize { get; set; }
public System.Xml.XmlDictionaryReaderQuotas ReaderQuotas { get; set; }
[System.ComponentModel.DefaultValueAttribute(65536)]
public int MaxBufferSize { get; set; }
public System.Text.Encoding WriteEncoding { get; set; }
public override MessageVersion MessageVersion { get; set; }
public override IChannelFactory<TChannel> BuildChannelFactory<TChannel>(BindingContext context) { return default; }
public override bool CanBuildChannelFactory<TChannel>(BindingContext context) { return default; }
public override BindingElement Clone() { return default; }
public override MessageEncoderFactory CreateMessageEncoderFactory() { return default; }
public override T GetProperty<T>(BindingContext context) { return default; }
}
public sealed class ReliableSessionBindingElement : System.ServiceModel.Channels.BindingElement
{
public ReliableSessionBindingElement() { }
Expand Down