Class ExceptionLoggingBehaviorExtension
Represents a configuration element, which enable the user to customize and assign the Exception Logging Behavior through configuration file.
Inheritance
Namespace: Nevatech.Vsb.Repository.Diagnostics
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class ExceptionLoggingBehaviorExtension : BehaviorExtensionElement
Constructors
ExceptionLoggingBehaviorExtension()
Declaration
public ExceptionLoggingBehaviorExtension()
Fields
LogExceptionsAttributeName
Name of the attribute representing Log
Declaration
public const string LogExceptionsAttributeName = "logExceptions"
Field Value
Type | Description |
---|---|
System. |
WrapExceptionsAttributeName
Name of the attribute representing Wrap
Declaration
public const string WrapExceptionsAttributeName = "wrapExceptions"
Field Value
Type | Description |
---|---|
System. |
Properties
BehaviorType
Gets the type of behavior.
Declaration
public override Type BehaviorType { get; }
Property Value
Type | Description |
---|---|
System. |
LogExceptions
Gets or sets flag indicating that exception details must be logged to the
trace source defained by Trace
Declaration
public bool LogExceptions { get; set; }
Property Value
Type | Description |
---|---|
System. |
Properties
Gets collection of configuration element properties.
Declaration
protected override ConfigurationPropertyCollection Properties { get; }
Property Value
Type | Description |
---|---|
System. |
WrapExceptions
Gets or sets flag indicating that generic exceptions must be replaced
with System.
Declaration
public bool WrapExceptions { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
CopyFrom(ServiceModelExtensionElement)
Copies the content of the specified configuration element to this configuration element.
Declaration
public override void CopyFrom(ServiceModelExtensionElement from)
Parameters
Type | Name | Description |
---|---|---|
System. |
from | The configuration element to be copied. |
CreateBehavior()
Creates a behavior based on the current configuration settings.
Declaration
protected override object CreateBehavior()
Returns
Type | Description |
---|---|
System. |
New behavior instance based on the current configuration settings. |