Dipper/Dipper.Alioth/ManagerStarlet.cs

20 lines
429 B
C#
Raw Normal View History

2022-11-27 17:23:54 +08:00
using Dipper.Alioth.Starlets;
using Microsoft.AspNetCore.Mvc.ApplicationParts;
namespace Dipper.Alioth;
public class ManagerStarlet : IStarlet
{
private ApplicationPartManager _partManager;
public ManagerStarlet(ApplicationPartManager partManager)
{
_partManager = partManager;
}
public IEnumerable<string> GetList()
{
return _partManager.ApplicationParts.Select(x => x.Name);
}
}