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
48 lines
1.6 KiB
C#
48 lines
1.6 KiB
C#
//------------------------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
namespace System.ServiceModel.Configuration
|
|
{
|
|
using System;
|
|
using System.ServiceModel.Channels;
|
|
using System.Configuration;
|
|
using System.Globalization;
|
|
using System.Xml;
|
|
|
|
public abstract class BindingElementExtensionElement : ServiceModelExtensionElement
|
|
{
|
|
public virtual void ApplyConfiguration(BindingElement bindingElement)
|
|
{
|
|
// Some items make sense just as tags and have no other configuration
|
|
if (null == bindingElement)
|
|
{
|
|
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("bindingElement");
|
|
}
|
|
}
|
|
|
|
public abstract Type BindingElementType
|
|
{
|
|
get;
|
|
}
|
|
|
|
protected internal abstract BindingElement CreateBindingElement();
|
|
|
|
protected internal virtual void InitializeFrom(BindingElement bindingElement)
|
|
{
|
|
if (bindingElement == null)
|
|
{
|
|
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("bindingElement");
|
|
}
|
|
if (bindingElement.GetType() != this.BindingElementType)
|
|
{
|
|
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("bindingElement",
|
|
SR.GetString(SR.ConfigInvalidTypeForBindingElement,
|
|
this.BindingElementType.ToString(),
|
|
bindingElement.GetType().ToString()));
|
|
}
|
|
}
|
|
}
|
|
}
|