Akka.NET, ASP.NET Core, Hosted Services, and Dependency Injection
Akka.Hosting trivializes integrating Akka.NET with everything else in .NET.
13 minutes to readWe first introduced Akka.Hosting a couple of years ago and released it to market one of the major pillars of Akka.NET v1.5. Without any exaggeration, it is the single best usability improvement we have ever made to Akka.NET and we are furiously rewriting all of the official Akka.NET documentation and training courses to prioritize it.
In that same vein, we’re going to introduce how you can use Akka.Hosting to easily integration Akka.NET with:
- Microsoft.Extensions.DependencyInjection - injecting things into actors and actors into things;
- ASP.NET Core / SignalR / gRPC / etc - anything that can be injected via MSFT.EXT.DI really; and
- Running Akka.NET in headless
IHostedServices
for things like stand-alone Windows Services.
Read on.