private static void CreateInstance()
 {
     instance = new NetworkingPerfCounters();
     if ((instance.Enabled && !ThreadPool.QueueUserWorkItem(new WaitCallback(instance.Initialize))) && Logging.On)
     {
         Logging.PrintError(Logging.Web, SR.GetString("net_perfcounter_cant_queue_workitem"));
     }
 }
 private static void CreateInstance()
 {
     instance = new NetworkingPerfCounters();
     if ((instance.Enabled && !ThreadPool.QueueUserWorkItem(new WaitCallback(instance.Initialize))) && Logging.On)
     {
         Logging.PrintError(Logging.Web, SR.GetString("net_perfcounter_cant_queue_workitem"));
     }
 }
 private static void CreateInstance()
 {
     instance = new NetworkingPerfCounters();
     if (instance.Enabled)
     {
         // as recommended by the perf. counter team: initialize perf. counters in background thread
         // since initialization may take a long time. Therefore we should not block.
         if (!ThreadPool.QueueUserWorkItem(instance.Initialize))
         {
             if (Logging.On)
             {
                 Logging.PrintError(Logging.Web, SR.GetString(SR.net_perfcounter_cant_queue_workitem));
             }
         }
     }
 }
 private static void CreateInstance()
 {
     instance = new NetworkingPerfCounters();
     if (instance.Enabled)
     {
         // as recommended by the perf. counter team: initialize perf. counters in background thread
         // since initialization may take a long time. Therefore we should not block.
         if (!ThreadPool.QueueUserWorkItem(instance.Initialize))
         {
             if (Logging.On) Logging.PrintError(Logging.Web, SR.GetString(SR.net_perfcounter_cant_queue_workitem));
         }
     }
 }