/*********************这个特性是为了使用Autofac的属性注入功能************************/ [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]//只能标记在属性上 public class AutowiredAttribute : Attribute { }