NRules Autofac integration package does not support Autofac 3.3.1 and higher
See original GitHub issueTaking from the example @ https://github.com/NRules/NRules/wiki/Rule-Dependencies (i.e. using NRules.Integration.Autofac) I keep getting an exception with the following code:
var types = containerBuilder.RegisterRules(x => x.AssemblyOf(typeof(IMyRule)));
containerBuilder.RegisterRepository(r => r.Load(x => x.From(types)));
containerBuilder.RegisterSessionFactory();
containerBuilder.RegisterSession();
System.MissingMethodException : Method not found: ‘Autofac.Builder.IRegistrationBuilder3<!0,!1,!2> Autofac.Builder.IRegistrationBuilder
3.PropertiesAutowired(Autofac.PropertyWiringOptions)’.
at NRules.Integration.Autofac.RegistrationExtensions.RegisterRepository(ContainerBuilder builder, Action`1 initAction)
Any thoughts?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Error after update Autofac.Mvc5 from 3.3.2 to 3.3.3
The dependency resolver is not of type 'Autofac.Integration.Mvc.AutofacDependencyResolver' and does not appear to be wrapped using DynamicProxy ...
Read more >Web API — Autofac 3.3 documentation
WebApi NuGet package. Web API integration provides dependency injection integration for controllers, model binders, and action filters. It also adds per-request ...
Read more >The requested service has not been registered
This error means that Autofac tried to resolve a service based on an application request but that service was not registered in the...
Read more >Autofac Integration | Documentation Center | ABP.IO
Install Autofac Integration. All the startup templates and samples are Autofac integrated. So, most of the time you don't need to manually install...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This will be addressed in 0.8.1 release (upgrading references to Autofac 3.3.1, which is compatible with 4.4.0)
@tuzik12 Autofac had some breaking changes, so the Autofac integration code needs to be recompiled against the new version. For now, until the new NRules release is out, I recommend that you recompile it yourself against the version of Autofac that you are using in your project.