예제 #1
0
 public static void EnsureStartup()
 {
     if (!_startupComplete)
     {
         lock (_locker)
         {
             if (!_startupComplete)
             {
                 DataConfig.PerformStartup();
                 _startupComplete = true;
             }
         }
     }
 }
예제 #2
0
 protected void Application_BeginRequest(object sender, EventArgs e)
 {
     DataConfig.EnsureStartup();
 }