yiyungent / KnifeHub

🧰 简单易用的效率工具平台

Home Page:http://yiyungent.github.io/KnifeHub/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

System.Exception: No constructor was found that had all the dependencies satisfied.

sentry-io opened this issue · comments

Sentry Issue: KNIFEHUB-6

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.
  ?, in object PluginFinder.ResolveUnregistered(Type type)+(ParameterInfo parameter) => { }
  ?, in object PluginFinder.ResolveUnregistered(Type type)

System.Exception: No constructor was found that had all the dependencies satisfied.
  ?, in object PluginFinder.ResolveUnregistered(Type type)
  ?, in IEnumerable<TPlugin> PluginFinder.EnablePlugins<TPlugin>()+MoveNext()
  ?, in void HomeController.ChannelBotItem(BotDevItemModel botConfig, SettingsModel settings)+(Exception ex) => { }
  ?, in async ValueTask BaseWebSocket.ConnectAsync(string url)
  ?, in async ValueTask ChannelBot.OnlineAsync()
...
(10 additional frame(s) were not displayed)
commented

好像是 OnlineAsync 时 使用的是保存起来的 旧的 _pluginFinder , 而 _pluginFinder 内部保存的仍为旧的 IServiceProvider