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