2021-11-22 14:29:22 +01:00
|
|
|
namespace zero.Configuration;
|
2021-11-19 14:59:24 +01:00
|
|
|
|
|
|
|
|
public class FeatureOptions : OptionsEnumerable<Feature>, IOptionsEnumerable
|
|
|
|
|
{
|
|
|
|
|
public void Add<T>() where T : Feature, new()
|
|
|
|
|
{
|
|
|
|
|
Items.Add(new T());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Add(string alias, string name, string description)
|
|
|
|
|
{
|
|
|
|
|
Items.Add(new Feature()
|
|
|
|
|
{
|
|
|
|
|
Alias = alias,
|
|
|
|
|
Name = name,
|
|
|
|
|
Description = description
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|