Xamarin to Maui - Error in CheckRules #4620
Unanswered
ajohnstone-ks
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm getting an exception in CheckRules when run on the Maui client (Android). The exception message is Multiple constructors accepting all given argument types have been found in type 'Csla.LazySingleton
1[System.Collections.Generic.Dictionary
2[Csla.Core.IPropertyInfo,System.Object]]'. There should only be one applicable constructor.I can replicate it during app startup with the following code:
var lazy = ActivatorUtilities.CreateInstance(serviceProvider, typeof(LazySingleton<Dictionary<Csla.Core.IPropertyInfo, object>>));
The only place LazySingleton is used is in the RuleContext's ctor
I think it can't tell the difference between the default ctor and the one that takes a Func delegate, although based on the code I don't think that ctor is ever actually used anywhere.
Any ideas on how to fix this? I can replicate it with Csla 7.0.7 and 8.2.9. The only unusual thing may be that we are backing ServiceProvider with the Unity container, but as near as I can tell the error is from ServiceProvider code only. I've also tried updating the Extensions.DI from 6 to 7 and the issue remains there as well.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions