using Microsoft.Extensions.DependencyInjection;
namespace KH.WMS.Core.DependencyInjection.ServiceLifetimes;
///
/// 自注册服务标记 - 服务自身作为实现类型
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class SelfRegisteredServiceAttribute : Attribute
{
///
/// 服务生命周期
///
public ServiceLifetime Lifetime { get; set; } = ServiceLifetime.Scoped;
}