示例#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);
         }
     }
 }