Class ExceptionLoggingBehaviorExtension
Represents a configuration element, which enable the user to customize and assign the Exception Logging Behavior through configuration file.
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 LogExceptions property in the configuration element.
Declaration
public const string LogExceptionsAttributeName = "logExceptions"
Field Value
Type | Description |
---|---|
String |
WrapExceptionsAttributeName
Name of the attribute representing WrapExceptions property in the configuration element.
Declaration
public const string WrapExceptionsAttributeName = "wrapExceptions"
Field Value
Type | Description |
---|---|
String |
Properties
BehaviorType
Gets the type of behavior.
Declaration
public override Type BehaviorType { get; }
Property Value
Type | Description |
---|---|
Type |
LogExceptions
Gets or sets flag indicating that exception details must be logged to the trace source defained by TraceSourceName property.
Declaration
public bool LogExceptions { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Properties
Gets collection of configuration element properties.
Declaration
protected override ConfigurationPropertyCollection Properties { get; }
Property Value
Type | Description |
---|---|
ConfigurationPropertyCollection |
WrapExceptions
Gets or sets flag indicating that generic exceptions must be replaced with FaultException.
Declaration
public bool WrapExceptions { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
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 |
---|---|---|
ServiceModelExtensionElement | 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 |
---|---|
Object | New behavior instance based on the current configuration settings. |