Ejemplo n.º 1
0
 public static IssueReporterManager GetInstance()
 {
     if (_defaultInstance == null)
     {
         lock (_lockObject)
         {
             if (_defaultInstance == null)
             {
                 IssueReporterManager newInstance = new IssueReporterManager();
                 newInstance.RestorePersistedConfigurations();
                 _defaultInstance = newInstance;
             }
         }
     }
     return(_defaultInstance);
 }
Ejemplo n.º 2
0
        public static IssueReporterManager GetInstance()
        {
            if (_defaultInstance == null)
            {
                lock (_lockObject)
                {
#pragma warning disable CA1508 // Analyzer doesn't understand threading
                    if (_defaultInstance == null)
                    {
                        IssueReporterManager newInstance = new IssueReporterManager();
                        newInstance.RestorePersistedConfigurations();
                        _defaultInstance = newInstance;
                    }
#pragma warning restore CA1508 // Analyzer doesn't understand threading
                }
            }
            return(_defaultInstance);
        }