Using the FeatureManagement feature in .NET Core 3.1, I am trying to write a custom database feature provider that will pull features and whether or not they are enabled from a SQL Server database. To do this, the Microsoft documentation says you need to implement the IFeatureDefinitionProvider interface.
You need to return a FeatureDefinition class which doesn't contain whether or not the feature is enabled but contains IEnumerable<FeatureFilterConfiguration>. There are no examples anywhere online as the feature is pretty new, and even looking at the Azure implementation (one of their two suggested implementations along with appsettings.json which will not work for this specific use case) is pretty confusing. The documentation for the FeatureDefinition class and EnabledFor do not provide any useful information.
Does anyone know how to use Microsoft.FeatureManagement in .NET Core 3.1 to extract feature data from the database?