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)
好像是 OnlineAsync
时 使用的是保存起来的 旧的 _pluginFinder
, 而 _pluginFinder
内部保存的仍为旧的 IServiceProvider