Skip to content

Instantly share code, notes, and snippets.

@Blind-Striker
Created September 5, 2017 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Blind-Striker/bff9a13e886af164bd5c7de3e40c089e to your computer and use it in GitHub Desktop.
Save Blind-Striker/bff9a13e886af164bd5c7de3e40c089e to your computer and use it in GitHub Desktop.
Example Actor Lifecycle events for Akka.Net Medium Article
public class FooActor : UntypedActor
{
protected override void OnReceive(object message)
{
}
protected override void PreStart()
{
}
protected override void PreRestart(Exception reason, object message)
{
}
protected override void PostStop()
{
}
protected override void PostRestart(Exception reason)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment