DoStart() 개인적인 메소드

private DoStart ( ) : void
리턴 void
예제 #1
0
 internal static RepositoryInstance Start(RepositoryStartSettings settings)
 {
     if (!_started)
     {
         lock (_startStopSync)
         {
             if (!_started)
             {
                 var instance = new RepositoryInstance();
                 instance._settings = new RepositoryStartSettings.ImmutableRepositoryStartSettings(settings);
                 _instance          = instance;
                 try
                 {
                     instance.DoStart();
                 }
                 catch (Exception)
                 {
                     _instance = null;
                     throw;
                 }
                 _started = true;
             }
         }
     }
     return(_instance);
 }
예제 #2
0
 internal static RepositoryInstance Start(RepositoryStartSettings settings)
 {
     if (!_started)
     {
         lock (_startupSync)
         {
             if (!_started)
             {
                 var instance = new RepositoryInstance();
                 instance._settings = new RepositoryStartSettings.ImmutableRepositoryStartSettings(settings);
                 _instance          = instance;
                 try
                 {
                     instance.DoStart();
                 }
                 catch (SqlException) //Workaround for VPN connectivity problem in LR office
                 {
                     Thread.Sleep(5000);
                     try
                     {
                         instance.DoStart();
                     }
                     catch (Exception)
                     {
                         _instance = null;
                         throw;
                     }
                 }
                 catch (Exception)
                 {
                     _instance = null;
                     throw;
                 }
                 _started = true;
             }
         }
     }
     return(_instance);
 }
예제 #3
0
 internal static RepositoryInstance Start(RepositoryStartSettings settings)
 {
     if (!_started)
     {
         lock (_startupSync)
         {
             if (!_started)
             {
                 var instance = new RepositoryInstance();
                 instance._settings = new RepositoryStartSettings.ImmutableRepositoryStartSettings(settings);
                 _instance = instance;
                 try
                 {
                     instance.DoStart();
                 }
                 catch (SqlException) //Workaround for VPN connectivity problem in LR office
                 {
                     Thread.Sleep(5000);
                     try
                     {
                         instance.DoStart();
                     }
                     catch (Exception)
                     {
                         _instance = null;
                         throw;
                     }
                 }
                 catch (Exception)
                 {
                     _instance = null;
                     throw;
                 }
                 _started = true;
             }
         }
     }
     return _instance;
 }