Created
July 13, 2022 09:27
-
-
Save sadeghhp/52e1e3a5d03c49e25538584f01c37446 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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