How to handle mutiple calls at OnReceive method in Actor class in AKKA.NET using c#
Hi,
I have an C#.net core 3.1 console application. I have developed Actor model in my application using Akka.Net
How to handle multiple calls at OnReceive method (below example: Method_A() invoked multiple times simultaneously, this will making issue in my application). Please check at Actor2 class in below example.
Example:
public class Actor1: UntypedActor
{
protected override void OnReceive(object message)
{
for(int i = 100;i<=100;i++)
{
actor2.tell(message)
}
}
}
public class Actor2: UntypedActor
{
protected override void OnReceive(object message)
{
method_A(message);
}
}
Can you share me some sample code in C-Sharp?
Regards,
Prabs