Example #1
0
 internal protected virtual void BeforeRestart(Exception reason)
 {
     // override
     LifeCycle.AfterStop(this);
 }
Example #2
0
 /// <summary>
 /// The message delivered before 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 BeforeRestart(Exception reason)
 {
     // override for specific recovery
     Logger.Error($"Default before restart recovery after: {reason.Message}", reason);
     LifeCycle.AfterStop(this);
 }