Search Results for

    Show / Hide Table of Contents

    Class ExceptionLoggingBehaviorExtension

    Represents a configuration element, which enable the user to customize and assign the Exception Logging Behavior through configuration file.

    Inheritance
    object
    ConfigurationElement
    ServiceModelConfigurationElement
    ServiceModelExtensionElement
    BehaviorExtensionElement
    ExceptionLoggingBehaviorExtension
    Inherited Members
    ServiceModelExtensionElement.ConfigurationElementName
    ConfigurationElement.IsReadOnly()
    ConfigurationElement.Equals(object)
    ConfigurationElement.GetHashCode()
    ConfigurationElement.LockAttributes
    ConfigurationElement.LockAllAttributesExcept
    ConfigurationElement.LockElements
    ConfigurationElement.LockAllElementsExcept
    ConfigurationElement.LockItem
    ConfigurationElement.ElementInformation
    ConfigurationElement.CurrentConfiguration
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    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
    Overrides
    BehaviorExtensionElement.BehaviorType

    LogExceptions

    Gets or sets flag indicating that exception details must be logged to the trace source defained by TraceSourceName property.

    Declaration
    [ConfigurationProperty("logExceptions")]
    public bool LogExceptions { get; set; }
    Property Value
    Type Description
    bool

    Properties

    Gets collection of configuration element properties.

    Declaration
    protected override ConfigurationPropertyCollection Properties { get; }
    Property Value
    Type Description
    ConfigurationPropertyCollection
    Overrides
    ConfigurationElement.Properties

    WrapExceptions

    Gets or sets flag indicating that generic exceptions must be replaced with FaultException.

    Declaration
    [ConfigurationProperty("wrapExceptions")]
    public bool WrapExceptions { get; set; }
    Property Value
    Type Description
    bool

    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.

    Overrides
    ServiceModelExtensionElement.CopyFrom(ServiceModelExtensionElement)

    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.

    Overrides
    BehaviorExtensionElement.CreateBehavior()
    In This Article
    Back to top Nevatech Sentinet 6.7 Online Documentation