Closed xknife-erian closed 4 years ago
Hi. By "failed", what do you mean? What exactly happens?
I think you are resolving a named instance. Previously UseCommandFactory
provided a CommandSchema
which had a command name, but now it's just a Type
. You need to resolve the command by type, not by name.
thank you I come from a non-english speaking country and may not express clearly. I mean, it was normal to use Autofac, but I want to be able to use it after the upgrade, not report errors. According to your reply, I have fixed the problem.Thank you very much. Your project is also a very well designed project, which I have used in many of my projects.
Don't worry 🙂 I'm glad you've managed to fix the problem and also glad that you like the project!
using Autofac;