예제 #1
0
파일: Program.cs 프로젝트: mind0n/hive
 /// <summary>
 /// Do a version upgrade!
 /// </summary>
 static void Upgrade(IHotSwap old, ISimpleTask latest)
 {
     lock (VersionLock)
     {
         try
         {
             latest.SetState(old.GetState());
             current = latest;
         }
         catch (Exception ex)
         {
             Console.WriteLine("Can't upgrade: " + ex.Message);
         }
     }
 }
예제 #2
0
파일: Program.cs 프로젝트: mind0n/hive
 /// <summary>
 /// Do a version upgrade!
 /// </summary>
 static void Upgrade(IHotSwap old, ISimpleTask latest)
 {
     lock (VersionLock)
     {
         try
         {
             latest.SetState(old.GetState());
             current = latest;
         }
         catch (Exception ex)
         {
             Console.WriteLine("Can't upgrade: " + ex.Message);
         }
     }
 }
예제 #3
0
 static void Upgrade(IHotSwap old, IHotSwapInvoke latest)
 {
     lock (VersionLock)
     {
         try
         {
             latest.SetState(old.GetState());
             current = latest;
         }
         catch (Exception ex)
         {
             Logger.LogLine("Can't upgrade: " + ex.Message);
         }
     }
 }