AutowiredAttribute.cs 282 B

123456
  1. /*********************这个特性是为了使用Autofac的属性注入功能************************/
  2. [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]//只能标记在属性或字段上
  3. public class AutowiredAttribute : Attribute
  4. {
  5. }