示例#1
0
 internal protected virtual void AfterRestart(Exception reason)
 {
     // override
     LifeCycle.BeforeStart(this);
 }
示例#2
0
 /// <summary>
 /// The message delivered after the <c>Actor</c> has been restarted by its supervisor due to an exception.
 /// Override to implement.
 /// </summary>
 /// <param name="reason">The <c>Exception</c> cause of the supervision restart.</param>
 protected internal virtual void AfterRestart(Exception reason)
 {
     // override for specific recovery
     Logger.Error($"Default after restart recovery after: {reason.Message}", reason);
     LifeCycle.BeforeStart(this);
 }