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 LogExceptions property in the configuration element.
Declaration
public const string LogExceptionsAttributeName = "logExceptions"
Field Value
Type | Description |
---|---|
System.String |
WrapExceptionsAttributeName
Name of the attribute representing WrapExceptions property in the configuration element.
Declaration
public const string WrapExceptionsAttributeName = "wrapExceptions"
Field Value
Type | Description |
---|---|
System.String |
Properties
BehaviorType
Gets the type of behavior.
Declaration
public override Type BehaviorType { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Boolean |
Properties
Gets collection of configuration element properties.
Declaration
protected override ConfigurationPropertyCollection Properties { get; }
Property Value
Type | Description |
---|---|
System.Configuration.ConfigurationPropertyCollection |
WrapExceptions
Gets or sets flag indicating that generic exceptions must be replaced with System.ServiceModel.FaultException.
Declaration
public bool WrapExceptions { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|---|
System.ServiceModel.Configuration.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 |
---|---|
System.Object | New behavior instance based on the current configuration settings. |