Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System.ServiceModel / System / ServiceModel / Configuration / CallbackDebugElement.cs
blob68aaa7192335d47e2f76658a1235b150d7edebd5
1 //------------------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //------------------------------------------------------------------------------
5 namespace System.ServiceModel.Configuration
7 using System.Configuration;
8 using System.ServiceModel.Description;
10 public sealed partial class CallbackDebugElement : BehaviorExtensionElement
12 public CallbackDebugElement()
16 [ConfigurationProperty(ConfigurationStrings.IncludeExceptionDetailInFaults, DefaultValue = false)]
17 public bool IncludeExceptionDetailInFaults
19 get { return (bool)base[ConfigurationStrings.IncludeExceptionDetailInFaults]; }
20 set { base[ConfigurationStrings.IncludeExceptionDetailInFaults] = value; }
23 public override void CopyFrom(ServiceModelExtensionElement from)
25 base.CopyFrom(from);
27 CallbackDebugElement source = (CallbackDebugElement)from;
28 #pragma warning suppress 56506 //Microsoft; base.CopyFrom() check for 'from' being null
29 this.IncludeExceptionDetailInFaults = source.IncludeExceptionDetailInFaults;
32 protected internal override object CreateBehavior()
34 return new CallbackDebugBehavior(this.IncludeExceptionDetailInFaults);
37 public override Type BehaviorType
39 get { return typeof(CallbackDebugBehavior); }