Show / Hide Table of Contents

Class DefaultErrorMessageColors

Expose the default fatal and nonfatal exception message colors, which are defined in a standard application configuration file that is linked to the assembly that defines this class.

Inheritance
System.Object
AssemblyLocatorBase
PropertyDefaults
DefaultErrorMessageColors
Inherited Members
PropertyDefaults.ValuesCollection
PropertyDefaults.GetAssemblyBuildDate(DateTimeKind)
PropertyDefaults.GetAssemblyVersionString()
PropertyDefaults.EnumerateMissingConfigurationValues()
AssemblyLocatorBase.ASSEMBLYDATAPATH_TOKEN
AssemblyLocatorBase._strAssemblyLocation
AssemblyLocatorBase.AssemblyDataPath
AssemblyLocatorBase.AssemblyLocation
AssemblyLocatorBase.RecoveredConfigurationExceptions
AssemblyLocatorBase.MissingConfigSettings
AssemblyLocatorBase.DLLConfiguration
AssemblyLocatorBase.DLLSettingsSection
AssemblyLocatorBase.DLLSettings
AssemblyLocatorBase.GetAssemblyVersion()
AssemblyLocatorBase.GetDLLSetting(String)
AssemblyLocatorBase.SetPropertiesFromDLLConfiguration(Type)
Namespace: WizardWrx.ConsoleStreams
Assembly: WizardWrx.ConsoleStreams.dll
Syntax
public class DefaultErrorMessageColors : PropertyDefaults

Constructors

| Improve this Doc View Source

DefaultErrorMessageColors()

The default constructor deviates from the usual pattern by explicitly calling the base constructor overload that accepts a reference to the assembly that defines this class, with the objective of linking it to the application configuration file that is linked to this DLL.

Declaration
public DefaultErrorMessageColors()
| Improve this Doc View Source

DefaultErrorMessageColors(System.Reflection.Assembly)

The overloaded constructor adheres to the usual pattern by explicitly calling the base constructor with a reference to the DLL specified by the caller, with the objective of linking it to the application configuration file that is linked to aNonther DLL.

Declaration
public DefaultErrorMessageColors(System.Reflection.Assembly pasmLinkedAssembly)
Parameters
Type Name Description
System.Reflection.Assembly pasmLinkedAssembly

Specify the assembly to which the desired configuration file is linked.

Properties

| Improve this Doc View Source

FatalExceptionBackgroundColor

Get or set the default background color for rendering reports of fatal exceptions.

Declaration
public ConsoleColor FatalExceptionBackgroundColor { get; set; }
Property Value
Type Description
ConsoleColor
| Improve this Doc View Source

FatalExceptionTextColor

Get or set the default text color for rendering reports of fatal exceptions.

Declaration
public ConsoleColor FatalExceptionTextColor { get; set; }
Property Value
Type Description
ConsoleColor
| Improve this Doc View Source

PropsLeftAtDefault

Get the count of properties that were omitted from the linked configuration file. When this value is greater than zero, generic dictionary MissingConfigSettings, inherited from the AssemblyLocatorBase base class, contains one string for each such property.

Declaration
public int PropsLeftAtDefault { get; }
Property Value
Type Description
System.Int32
See Also
MissingConfigSettings
| Improve this Doc View Source

PropsSetFromConfig

Get the count of properties that were set from the linked configuration file.

Declaration
public int PropsSetFromConfig { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

RecoverableExceptionBackgroundColor

Get or set the default background color for rendering reports of recoverable exceptions.

Declaration
public ConsoleColor RecoverableExceptionBackgroundColor { get; set; }
Property Value
Type Description
ConsoleColor
| Improve this Doc View Source

RecoverableExceptionTextColor

Get or set the default text color for rendering reports of recoverable exceptions.

Declaration
public ConsoleColor RecoverableExceptionTextColor { get; set; }
Property Value
Type Description
ConsoleColor

Methods

| Improve this Doc View Source

ToString()

Override the default ToString method on the base class (object) to show the key properties followed by the fully qualified class name.

Declaration
public override string ToString()
Returns
Type Description
System.String

Return a string similar to the following.

Template: {Fatal: Text = FatalExceptionTextColor, FatalExceptionBackgroundColor = BackgroundColor; Recoverable: Text = RecoverableExceptionTextColor, Background = RecoverableExceptionBackgroundColor} WizardWrx.ConsoleStreams.DefaultErrorMessageColors Template: {{WizardWrx.ConsoleStreams.DefaultErrorMessageColors (Fatal: Text (Foreground) = FatalExceptionTextColor, Background = FatalExceptionBackgroundColor; Recoverable: Text (Foreground) = RecoverableExceptionTextColor, Background = RecoverableExceptionBackgroundColor)}}

  • Improve this Doc
  • View Source
Back to top Generated by DocFX