/// <summary> /// Initializes a new instance of class CrmTrace /// </summary> public CrmTrace() { // Retrieve current registry keys for trace TraceEnabled = RegistryHelper.EvaluateOption("TraceEnabled", CrmRegistryPath); TraceCallStack = RegistryHelper.EvaluateOption("TraceCallStack", CrmRegistryPath); }
/// <summary> /// Gets the local or network path for the web.config directory /// </summary> /// <returns></returns> private string GetWebConfigDirectoryPath() { return(RegistryHelper.EvaluateString("WebSitePath", @"Software\Microsoft\MSCRM")); }