Добавил систему плагинов
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Create and publish a Docker image / Publish image (push) Failing after 4m3s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Create and publish a Docker image / Publish image (push) Failing after 4m3s
				
			This commit is contained in:
		
							
								
								
									
										13
									
								
								SfeduSchedule.Plugin.Abstractions/IPlugin.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								SfeduSchedule.Plugin.Abstractions/IPlugin.cs
									
									
									
									
									
										Normal 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); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user