public static string Read(string name, string defaultValue = null)
{
try
{
return ReadRegistryKeyValue(name, defaultValue);
}
catch (Exception ex)
{
Logger.Warn($@"Could not read the registry to retrieve the {name}, from 'HKEY_LOCAL_MACHINE\SOFTWARE\ParticularSoftware\ServiceBus'.", ex);
}
return defaultValue;
}