I have a Windows Service with an Akka.NET Actor System. In one actor I use an external .NET component (HAL | Facade Pattern) that uses an event-based design to listen devices cross network, I create the instance of the component on the actor and register the events that the component requires. I use the Ninject dependency injection to get the instance of the component. How can I get callback of this component? I mean I need to receive events of this component in my actor.
One option is create an additional thread in the actor to listen those events and send it to the actor with a regular message (Tell) but I don´t know if is the best way or exists another one.