using System.Reflection; using Dipper.Alioth.Starlets; using Microsoft.AspNetCore.Mvc.Controllers; namespace Dipper.Alioth.Web; public class StarletFeatureProvider : ControllerFeatureProvider { protected override bool IsController(TypeInfo typeInfo) { return typeof(IStarlet).IsAssignableFrom(typeInfo) && typeInfo.IsPublic && !typeInfo.IsAbstract && !typeInfo.IsGenericType; } }