Skip to content

Instantly share code, notes, and snippets.

@sadeghhp
Created July 13, 2022 09:27
Show Gist options
  • Save sadeghhp/52e1e3a5d03c49e25538584f01c37446 to your computer and use it in GitHub Desktop.
Save sadeghhp/52e1e3a5d03c49e25538584f01c37446 to your computer and use it in GitHub Desktop.
using System;
using Akka.Actor;
namespace ActorsSendingMessages
{
/// <summary>
/// See http://akkadotnet.github.io/wiki/Actors for more details about
/// Akka.NET actors
/// </summary>
public class BasicActor : UntypedActor
{
protected override void PreStart()
{
}
protected override void PreRestart(Exception reason, object message)
{
}
protected override void OnReceive(object message)
{
//handle messages here
}
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