A lovey thing about C1 CMS is its extensibility and how it relies on static typing. This means though that we get a lot of types that are instantiated via reflection and requires a public constructor without arguments.
Not so nice in the world of Dependency Injection.
This is easily fixed though by replacing Activator.CreateInstance with ActivatorUtilities.CreateInstance
A lovey thing about C1 CMS is its extensibility and how it relies on static typing. This means though that we get a lot of types that are instantiated via reflection and requires a public constructor without arguments.
Not so nice in the world of Dependency Injection.
This is easily fixed though by replacing
Activator.CreateInstance
withActivatorUtilities.CreateInstance
https://github.com/Orckestra/C1-CMS-Foundation/search?q=%22Activator.CreateInstance%22&type=code