4 Commits
1.1.1 ... 1.1.2

3 changed files with 10 additions and 4 deletions

View File

@@ -4,8 +4,8 @@ on:
push:
branches:
- "main"
#paths:
#- "TimetableDesigner.Backend.Events**"
paths:
- "TimetableDesigner.Backend.Events**"
jobs:
build:

View File

@@ -2,7 +2,10 @@
namespace TimetableDesigner.Backend.Events;
public abstract class EventQueue
public abstract class EventQueue<TSelf> where TSelf : EventQueue<TSelf>
{
public abstract void Setup(IServiceCollection services);
public abstract void Setup<TBuilder>(IServiceCollection services, TBuilder configuration)
where TBuilder : EventQueueBuilder<TSelf>;
public abstract void Setup(IServiceCollection services, string connectionString);
}

View File

@@ -0,0 +1,3 @@
namespace TimetableDesigner.Backend.Events;
public abstract class EventQueueBuilder<TQueue> where TQueue : EventQueue<TQueue>;