i'am play with ASP.NET vnext and SignalR. As IoC i want to use Autofac.
For this i found a perfect example: Self-Registering Libraries with Autofac 4 and vNext from @endeffects
There is exactly described what i want. But it dosen't work: I mean my Objects will be not injected. And my PersistentConnection (no Hub) object are not created. But i did not see any errors or exceptions.
When i remove the requested interface from my PersistentConnection constructor, the connection will be established and all is fine. But i haven't my requested object instance how implement the desired interface.
Is there any breaking changes since end of July in Autofac and DNX?
I'am using: DNX beta-7
- "Autofac": "4.0.0-beta8-135",
- "Autofac.Dnx": "4.0.0-alpha4-79"
- "Microsoft.AspNet.SignalR.Server": "3.0.0-beta7"