Перенёс Abstractions в другой namespace и небольшие улучшения

This commit is contained in:
2025-09-22 23:13:38 +03:00
parent f9bf2a46e0
commit 5b961e5b18
12 changed files with 21 additions and 16 deletions

View File

@@ -0,0 +1,13 @@
namespace SfeduSchedule.Abstractions;
// Базовый контракт плагина (общий для хоста и плагинов)
public interface IPlugin
{
string Name { get; }
// Регистрация сервисов плагина в DI (выполняется до Build())
void ConfigureServices(IServiceCollection services);
// Регистрация маршрутов (Minimal API) плагина после Build()
void MapEndpoints(IEndpointRouteBuilder endpoints);
}