使用新框架与技术代替旧框架与技术,实现涂装车间后道标签扫码程序
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace RIZO_Application.Infrastructure.CustomAttribute
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
|
||||
public sealed class AppServiceAttribute : Attribute
|
||||
{
|
||||
public Type ServiceType { get; set; }
|
||||
public ServiceLifetime Lifetime { get; set; } = ServiceLifetime.Transient;
|
||||
}
|
||||
|
||||
public enum ServiceLifetime
|
||||
{
|
||||
Transient,
|
||||
Singleton,
|
||||
Scoped
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user