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); }
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); }
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; }