If you have a simple module you can't register dependencies as factories nor instances.
You get the: Error CS1061 : 'Provider' does not contain a definition for 'SingletonClassFactory' and no accessible extension method 'SingletonClassFactory' accepting a first argument of type 'Provider' could be found (are you missing a using directive or an assembly reference?)
Only simple registration works (Transient, Scoped and Singleton).
Repro project:
ClassLibrary1.zip
If you have a simple module you can't register dependencies as factories nor instances.
You get the:
Error CS1061 : 'Provider' does not contain a definition for 'SingletonClassFactory' and no accessible extension method 'SingletonClassFactory' accepting a first argument of type 'Provider' could be found (are you missing a using directive or an assembly reference?)Only simple registration works (Transient, Scoped and Singleton).
Repro project:
ClassLibrary1.zip