Is it possible to launch the UI Event Loop from an Actor? Only if that Actor will exist the GUI should run this works with a Command Line application but not in Akka.Net Actor:
[STAThread] //optional
protected static bool StartUILoop()
{
Application.Run();
return true;
}
protected override void PreStart()
{
/* Let's start an Empty UI Application, the true Application will load the page with "Loading..." */
//Task mytask = Task.Run(() => Application.Run());
Task mytask = Task.Run(() =>
StartUILoop()
);
}
then when I receive the load command I simply do:
var form = new LoginForm();
form.Show();
the form is effectively shown but is not working is not active, label text is not drawn and if I move the mouse in it I get the spin wheel!
Thank you for your help...
@Silv3rcircl3 I have gone through few of them.
https://www.slideshare.net/Lightbend/understanding-akka-streams-back-pressure-and-asynchronous-architectures?next_slideshow=1
https://www.slideshare.net/rolandkuhn/akka-streams-and-http
https://github.com/pkinsky/akka-streams-example
https://www.slideshare.net/joy87/a-dive-into-akka-streams-from-the-basics-to-a-realworld-scenario
The documentation is great. I am disputing that. However you gusy have used in production if you guys can write some tutos like the one Bartosz wrote on Akka.IO it will help us as starting point.
Option
and unit