Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个循环,我需要创建一个“下载”类的多个实例并将它们设置为异步运行。我不知道我需要提前多少这个类的实例。这个下载类具有我想注入的依赖项,因此我不想使用 New 来创建它们。我应该用什么来创建它们?某种工厂?
To answer my own question: yes, I should create a factory interface and register it AsFactory in windsor. Duh. sorry.