autofac / Autofac.ServiceFabric

Autofac integration for Azure Service Fabric. Provides service factory implementations for Actors, Stateful Services and Stateless Services.
MIT License
26 stars 27 forks source link

RegisterStatelessService doesn't work inside Modules #2

Closed toddweb closed 7 years ago

toddweb commented 7 years ago

RegisterStatelessService() called within a Module.Load() results in the StatelessService instance not being spun up/created. There are no errors, just nothing happens. Interestingly, RegisterServiceFabricSupport() can be placed in the module and everything works as expected, as long as RegisterStatelessService() is outside of a Module.Load().

alexmg commented 7 years ago

Looks like the container build callbacks are not firing for modules. I'll have to take a look at this in the core Autofac library.

alexmg commented 7 years ago

I have created autofac/Autofac#849 to address the underlying issue. This will be released in Autofac 4.6.

toddweb commented 7 years ago

Thanks alexmg

alexmg commented 7 years ago

Just pushed a 1.0.0-beta1 package to NuGet. Let me know if you have any problems.