本文整理匯總了C#中System.ServiceModel.Channels.BinaryMessageEncodingBindingElement類的典型用法代碼示例。如果您正苦於以下問題:C# BinaryMessageEncodingBindingElement類的具體用法?C# BinaryMessageEncodingBindingElement怎麽用?C# BinaryMessageEncodingBindingElement使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BinaryMessageEncodingBindingElement類屬於System.ServiceModel.Channels命名空間,在下文中一共展示了BinaryMessageEncodingBindingElement類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: BinaryMessageEncodingBindingElement
var be = new BinaryMessageEncodingBindingElement();
be.MaxReadPoolSize = 16;
be.MaxSessionSize = 2048;
be.MaxWritePoolSize = 16;
be.MessageVersion = MessageVersion.Default;
XmlDictionaryReaderQuotas quotas = be.ReaderQuotas;
var binding = new CustomBinding();
var bpCol = new BindingParameterCollection();
var context = new BindingContext(binding, bpCol);
be.BuildChannelFactory<IDuplexChannel>(context);
var binding2 = new CustomBinding();
var bpCol2 = new BindingParameterCollection();
var context2 = new BindingContext(binding2, bpCol2);
be.BuildChannelListener<IDuplexChannel>(context2);
be.CanBuildChannelListener<IDuplexChannel>(context2);
BindingElement bindingElement = be.Clone();
MessageEncoderFactory mef = be.CreateMessageEncoderFactory();
MessageVersion mv = be.GetProperty<MessageVersion>(context);