public static string GetSourceName(string applicationName)
        {
            if (LogEventSourceProvider._sources.ContainsKey(applicationName))
            {
                return(LogEventSourceProvider._sources[applicationName]);
            }

            if (LogEventSourceProvider.IsRegistered(applicationName))
            {
                LogEventSourceProvider._sources[applicationName] = applicationName;

                return(applicationName);
            }

            return(LogEventSourceProvider._sources[_defaultSource]);
        }