云库增加 AI识图,缓存,我的云库收藏增加安全标志

调用外部API 扣费
This commit is contained in:
chfei committed 2026-11-06 19:25:36 +08:00
1 parent 7c29e57623
commit 150e8644b7
49 files changed
+1069 -28

No files matched your search

@@ -260,6 +260,10 @@ namespace MAX.Framework.DependencyInjection
provider.GetRequiredService<PluginRuntime>();
return context;
});
var typedContext = typeof(PluginContext<>).MakeGenericType(plugin.GetType());
host.Services.AddSingleton(typedContext, provider =>
// 复用键名注册,确保仅解析泛型上下文时也由容器管理配置的释放。
Activator.CreateInstance(typedContext, provider.GetRequiredKeyedService<PluginContext>(plugin.Id))!);
RunDebugStep("Plugin", $"注册 {plugin.Id} ({plugin.GetType().FullName}),Priority={plugin.Priority}",
() => plugin.ConfigureServices(host.Services, context));
}