As mentioned in a previous post, it is not that hard to start using dependency injection with Orleans. But what if you don’t want to use the built-in IoC container?
To switch the IoC container instance you can call the UseServiceProviderFactory() method exposed by the SiloHostBuilder. Here is an example that uses StructureMap: