Beispiel #1
0
        public void RefreshState()
        {
            var attempt = 0;

            while (true)
            {
                try
                {
                    foreach (var dataReader in dbBuilder.Load(Environment.MachineName, Settings.Current.Builder.Version))
                    {
                        Builder.SetFrom(dataReader);
                    }

                    break;
                }
                catch (Exception e)
                {
                    attempt++;

                    if (attempt == 10)
                    {
                        throw;
                    }
                }
            }
        }
Beispiel #2
0
 public void RefreshState()
 {
     foreach (var dataReader in dbBuilder.Load(Environment.MachineName))
     {
         Builder.SetFrom(dataReader);
     }
 }