I am trying to send a txt file (size 133 kB)
public class HelloActor : UntypedActor
{
public HelloActor()
{
}
protected override void OnReceive(object request)
{
var data = System.IO.File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory+"myfile.txt");
Sender.Forward(data);
}
}
and this is my client code
var actor = System.ActorSelection("HelloActor");
return await actor.Ask<string>(null, TimeSpan.FromHours(1));
This is not working.