using Autofac.Core; using System.Reflection; using WcsMain.Constant.WcsAttribute.AutoFacAttribute; namespace WcsMain.StartAction; public class AutowiredSelector : IPropertySelector { public bool InjectProperty(PropertyInfo propertyInfo, object instance) { return propertyInfo.GetCustomAttribute(typeof(AutowiredAttribute)) != default; } }