Class PluginTraceConfiguration
Contains the configuration data for tracing a plugin.
Inheritance
System.Object
PluginTraceConfiguration
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Hsl.Xrm.Sdk.Plugin
Assembly: Hsl.Xrm.Sdk.Plugin.dll
Syntax
[DataContract]
public class PluginTraceConfiguration
Constructors
PluginTraceConfiguration()
Default constructor.
Declaration
public PluginTraceConfiguration()
PluginTraceConfiguration(LogLevel, String, Boolean)
Declaration
public PluginTraceConfiguration(LogLevel logLevel, string indent, bool logContext)
Parameters
Type | Name | Description |
---|---|---|
Hsl.Logging.LogLevel | logLevel | |
System.String | indent | |
System.Boolean | logContext |
Properties
Default
Gets the default trace configuration.
Declaration
public static PluginTraceConfiguration Default { get; }
Property Value
Type | Description |
---|---|
PluginTraceConfiguration |
Indent
Gets/Sets an inidicates if tracing is enabled.
Declaration
public string Indent { get; }
Property Value
Type | Description |
---|---|
System.String |
LogContext
Gets/Sets an indication of whether the plugin context should be traced.
Declaration
public bool LogContext { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LogLevel
Gets/Sets the trace level.
Declaration
public LogLevel LogLevel { get; }
Property Value
Type | Description |
---|---|
Hsl.Logging.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.
Declaration
public static PluginTraceConfiguration CreateFromConfiguration(string unsecureConfig, string secureConfig)
Parameters
Type | Name | Description |
---|---|---|
System.String | unsecureConfig | |
System.String | secureConfig |
Returns
Type | Description |
---|---|
PluginTraceConfiguration |