Добавил систему плагинов
Some checks failed
Create and publish a Docker image / Publish image (push) Failing after 4m3s

This commit is contained in:
2025-09-07 15:47:25 +03:00
parent f15bf4dfe6
commit fd1c033460
8 changed files with 192 additions and 2 deletions

View File

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

View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<OutputType>Library</OutputType>
</PropertyGroup>
</Project>