GenresController>(); return container;RegisterStoreServices和RegisterMetadata都只包含单例或瞬态注册当我试图在我的API控制器上调用一个控制器方法时,我会得到以下错误 "message": "An error has occurred.arg3)\r\n at DryIoc.Container.ThrowUnableToResolve(Request r
public class Process<T> where T : class internal Process(Configuration<T> configuration) { }我希望在DryIoc中注册这些类,并需要每个Process<T>都是单例(就像Configuration<T>一样)。我如何注册这三个课程来实现我的需要?
注意到构造函数是内部。.GetConstructorOrNull(true, typeof(Config