NServiceBus.AuditConfigReader.ReadAuditQueueNameFromRegistry C# (CSharp) Method

ReadAuditQueueNameFromRegistry() static private method

static private ReadAuditQueueNameFromRegistry ( ) : string
return string
        static string ReadAuditQueueNameFromRegistry()
        {
            var queue = RegistryReader.Read("AuditQueue");
            if (string.IsNullOrWhiteSpace(queue))
            {
                return null;
            }
            // If Audit feature is enabled and the value not specified via config and instead specified in the registry:
            // Log a warning when running in the debugger to remind user to make sure the
            // production machine will need to have the required registry setting.
            if (Debugger.IsAttached)
            {
                Logger.Warn("Endpoint auditing is configured using the registry on this machine, see Particular Documentation for details on how to address this with your version of NServiceBus.");
            }
            return queue;
        }