增加项目,分层

This commit is contained in:
chfei committed 2026-09-11 19:11:12 +08:00
1 parent 6e995a5bdb
commit 0a3e5af6a9
234 files changed
+26994 -1

No files matched your search

@@ -0,0 +1,41 @@
//using Autofac;
//using System;
//namespace Store.Client
//{
// /// <summary>
// /// IServerConfig 的 Keyed DI 注册扩展。
// /// </summary>
// public static class ServiceConfigRegistrationExtensions
// {
// /// <summary>
// /// 注册指定 Key 的服务配置。
// /// </summary>
// public static ContainerBuilder RegisterServiceConfig(this ContainerBuilder builder, string key, IServerConfig config)
// {
// if (builder == null)
// {
// throw new ArgumentNullException(nameof(builder));
// }
// if (string.IsNullOrWhiteSpace(key))
// {
// throw new ArgumentException("服务配置 Key 不能为空。", nameof(key));
// }
// if (config == null)
// {
// throw new ArgumentNullException(nameof(config));
// }
// builder.RegisterInstance(config).Keyed<IServerConfig>(key);
// return builder;
// }
// /// <summary>
// /// 注册指定 Key 的服务配置。
// /// </summary>
// public static ContainerBuilder RegisterServiceConfig(this ContainerBuilder builder, string key, string host, string objUrl)
// {
// return builder.RegisterServiceConfig(key, new ServiceConfig(host, objUrl));
// }
// }
//}