|
namespace DispenserCommon.Ioc;
|
|
|
|
/// <summary>
|
|
/// 用于声明当前类需要交由IOC管理
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public class Component(Type? type = null, string? name = null) : Attribute
|
|
{
|
|
public Type? Type => type;
|
|
|
|
public string? Name => name;
|
|
} |