mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
63 lines
2.3 KiB
C#
63 lines
2.3 KiB
C#
//------------------------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.ServiceModel.Configuration
|
|
{
|
|
using System.Configuration;
|
|
using System.Net.Security;
|
|
using System.ServiceModel.Channels;
|
|
using Msmq = System.ServiceModel.MsmqIntegration;
|
|
|
|
public sealed partial class MsmqIntegrationElement : MsmqElementBase
|
|
{
|
|
public override Type BindingElementType
|
|
{
|
|
get { return typeof(Msmq.MsmqIntegrationBindingElement); }
|
|
}
|
|
|
|
public override void CopyFrom(ServiceModelExtensionElement from)
|
|
{
|
|
base.CopyFrom(from);
|
|
|
|
MsmqIntegrationElement source = from as MsmqIntegrationElement;
|
|
if (null != source)
|
|
this.SerializationFormat = source.SerializationFormat;
|
|
}
|
|
|
|
protected override TransportBindingElement CreateDefaultBindingElement()
|
|
{
|
|
return new Msmq.MsmqIntegrationBindingElement();
|
|
}
|
|
|
|
|
|
public override void ApplyConfiguration(BindingElement bindingElement)
|
|
{
|
|
base.ApplyConfiguration(bindingElement);
|
|
|
|
Msmq.MsmqIntegrationBindingElement binding = bindingElement as Msmq.MsmqIntegrationBindingElement;
|
|
binding.SerializationFormat = this.SerializationFormat;
|
|
}
|
|
|
|
protected internal override void InitializeFrom(BindingElement bindingElement)
|
|
{
|
|
base.InitializeFrom(bindingElement);
|
|
|
|
Msmq.MsmqIntegrationBindingElement binding = bindingElement as Msmq.MsmqIntegrationBindingElement;
|
|
|
|
SetPropertyValueIfNotDefaultValue(ConfigurationStrings.SerializationFormat, binding.SerializationFormat);
|
|
}
|
|
|
|
[ConfigurationProperty(ConfigurationStrings.SerializationFormat, DefaultValue = MsmqIntegrationDefaults.SerializationFormat)]
|
|
[ServiceModelEnumValidator(typeof(Msmq.MsmqMessageSerializationFormatHelper))]
|
|
public Msmq.MsmqMessageSerializationFormat SerializationFormat
|
|
{
|
|
get { return (Msmq.MsmqMessageSerializationFormat)base[ConfigurationStrings.SerializationFormat]; }
|
|
set { base[ConfigurationStrings.SerializationFormat] = value; }
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|