init
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user