using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
namespace KH.WMS.Core.DependencyInjection.ServiceLifetimes
{
///
/// 自注册服务标记 - 用于标记需要自动注册到依赖注入容器的服务
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class RegisteredServiceAttribute : Attribute
{
///
/// 服务生命周期
///
public ServiceLifetime Lifetime { get; set; } = ServiceLifetime.Scoped;
}
}