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
55 lines
2.0 KiB
C#
55 lines
2.0 KiB
C#
//------------------------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.ServiceModel.Configuration
|
|
{
|
|
using System.Configuration;
|
|
using System.ServiceModel.Description;
|
|
using System.ServiceModel.Dispatcher;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Runtime;
|
|
|
|
public sealed partial class DispatcherSynchronizationElement : BehaviorExtensionElement
|
|
{
|
|
public DispatcherSynchronizationElement()
|
|
{
|
|
}
|
|
|
|
[ConfigurationProperty(ConfigurationStrings.AsynchronousSendEnabled, DefaultValue = false)]
|
|
public bool AsynchronousSendEnabled
|
|
{
|
|
get { return (bool)base[ConfigurationStrings.AsynchronousSendEnabled]; }
|
|
set { base[ConfigurationStrings.AsynchronousSendEnabled] = value; }
|
|
}
|
|
|
|
[ConfigurationProperty(ConfigurationStrings.MaxPendingReceives,
|
|
DefaultValue = MultipleReceiveBinder.MultipleReceiveDefaults.MaxPendingReceives)]
|
|
[IntegerValidator(MinValue = 1)]
|
|
public int MaxPendingReceives
|
|
{
|
|
get { return (int)base[ConfigurationStrings.MaxPendingReceives]; }
|
|
set { base[ConfigurationStrings.MaxPendingReceives] = value; }
|
|
}
|
|
|
|
|
|
public override Type BehaviorType
|
|
{
|
|
get { return typeof(DispatcherSynchronizationBehavior); }
|
|
}
|
|
|
|
public override void CopyFrom(ServiceModelExtensionElement from)
|
|
{
|
|
base.CopyFrom(from);
|
|
DispatcherSynchronizationElement source = (DispatcherSynchronizationElement)from;
|
|
this.AsynchronousSendEnabled = source.AsynchronousSendEnabled;
|
|
this.MaxPendingReceives = source.MaxPendingReceives;
|
|
}
|
|
|
|
protected internal override object CreateBehavior()
|
|
{
|
|
return new DispatcherSynchronizationBehavior(this.AsynchronousSendEnabled, this.MaxPendingReceives);
|
|
}
|
|
}
|
|
}
|