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