Dipper/Dipper.Alioth/ManagerStarlet.cs

20 lines
429 B
C#

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);
}
}