Table of Contents

Class PluginTraceConfiguration

Namespace
Hsl.Xrm.Sdk.Plugin
Assembly
Hsl.Xrm.Sdk.Plugin.dll

Contains the configuration data for tracing a plugin.

[DataContract]
public class PluginTraceConfiguration
Inheritance
PluginTraceConfiguration
Inherited Members

Constructors

PluginTraceConfiguration()

Default constructor.

public PluginTraceConfiguration()

PluginTraceConfiguration(LogLevel, string, bool)

public PluginTraceConfiguration(LogLevel logLevel, string indent, bool logContext)

Parameters

logLevel LogLevel
indent string
logContext bool

Properties

Default

Gets the default trace configuration.

public static PluginTraceConfiguration Default { get; }

Property Value

PluginTraceConfiguration

Indent

Gets/Sets an inidicates if tracing is enabled.

public string Indent { get; }

Property Value

string

LogContext

Gets/Sets an indication of whether the plugin context should be traced.

public bool LogContext { get; }

Property Value

bool

LogLevel

Gets/Sets the trace level.

public LogLevel LogLevel { get; }

Property Value

LogLevel

Remarks

This is used along with the list of Users to determine if entries will be written to the trace log.

Methods

CreateFromConfiguration(string?, string?)

Gets a trace configuration from the unsecure/secure configuration. The secure configuration will take precendence over the unsecure configuration. The entire trace configuration must be present in one of the configuration strings or the default configuration is returned.

public static PluginTraceConfiguration CreateFromConfiguration(string? unsecureConfig, string? secureConfig)

Parameters

unsecureConfig string
secureConfig string

Returns

PluginTraceConfiguration