DoStart() private method

private DoStart ( ) : void
return void
Example #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);
 }
Example #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);
 }
Example #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;
 }