Show / Hide Table of Contents

Class Debugging

Facilitates debugging tasks that do not depend on any conditional defines

Inheritance
System.Object
Debugging
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX
Assembly: NFX.dll
Syntax
public static class Debugging

Fields

CONFIG_DEBUG_CONF_REFRESH_ATTR

Declaration
public const string CONFIG_DEBUG_CONF_REFRESH_ATTR = "debug-conf-refresh"
Field Value
Type Description
System.String

CONFIG_DEFAULT_DEBUG_ACTION_ATTR

Declaration
public const string CONFIG_DEFAULT_DEBUG_ACTION_ATTR = "debug-default-action"
Field Value
Type Description
System.String

CONFIG_TRACE_DISABLE_ATTR

Declaration
public const string CONFIG_TRACE_DISABLE_ATTR = "trace-disable"
Field Value
Type Description
System.String

Properties

DefaultDebugAction

Returns the global default setting, and optionally reads default debug action from global application's configuration if its value is DefaultFromConfig (default). Application can override this value at startup in order to avoid dynamic configuration lookups on every call

Declaration
public static DebugAction DefaultDebugAction { get; set; }
Property Value
Type Description
DebugAction

TraceDisabled

Controls wether to send Trace.Write() and Debug.Write() output to LogService

Declaration
public static bool TraceDisabled { get; set; }
Property Value
Type Description
System.Boolean

Methods

Assert(Boolean, String, DebugAction, String, MessageType, Int32, String, String, Nullable<Guid>, Int32)

Declaration
public static void Assert(bool condition, string text = null, DebugAction action = DebugAction.Default, string from = null, MessageType type = MessageType.Debug, int source = 0, string topic = null, string pars = null, Guid? correlationContext = default (Guid? ), int frameOffset = 1)
Parameters
Type Name Description
System.Boolean condition
System.String text
DebugAction action
System.String from
MessageType type
System.Int32 source
System.String topic
System.String pars
System.Nullable<System.Guid> correlationContext
System.Int32 frameOffset

Fail(String, DebugAction, String, MessageType, Int32, String, String, Nullable<Guid>, Int32)

Declaration
public static void Fail(string text = null, DebugAction action = DebugAction.Default, string from = null, MessageType type = MessageType.Debug, int source = 0, string topic = null, string pars = null, Guid? correlationContext = default (Guid? ), int frameOffset = 1)
Parameters
Type Name Description
System.String text
DebugAction action
System.String from
MessageType type
System.Int32 source
System.String topic
System.String pars
System.Nullable<System.Guid> correlationContext
System.Int32 frameOffset

Write(String, String, MessageType, Int32, String, String, Nullable<Guid>, Int32)

Declaration
public static void Write(string text, string from = null, MessageType type = MessageType.Debug, int source = 0, string topic = null, string pars = null, Guid? correlationContext = default (Guid? ), int frameOffset = 1)
Parameters
Type Name Description
System.String text
System.String from
MessageType type
System.Int32 source
System.String topic
System.String pars
System.Nullable<System.Guid> correlationContext
System.Int32 frameOffset
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX