This commit is contained in:
lijianyou
2025-09-30 15:00:32 +08:00
parent 1b262f06b8
commit b4e759cf69
202 changed files with 22035 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
namespace dy.net.extension
{
/// <summary>
/// 标记服务的生命周期
/// </summary>
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class ServiceLifetimeAttribute : Attribute
{
public ServiceLifetime Lifetime { get; }
public ServiceLifetimeAttribute(ServiceLifetime lifetime)
{
Lifetime = lifetime;
}
}
}