Compare commits
4 Commits
4
.github/workflows/push_main.yml
vendored
4
.github/workflows/push_main.yml
vendored
@@ -4,8 +4,8 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
#paths:
|
||||
#- "TimetableDesigner.Backend.Events**"
|
||||
paths:
|
||||
- "TimetableDesigner.Backend.Events**"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
3
TimetableDesigner.Backend.Events/EventQueueBuilder.cs
Normal file
3
TimetableDesigner.Backend.Events/EventQueueBuilder.cs
Normal file
@@ -0,0 +1,3 @@
|
||||
namespace TimetableDesigner.Backend.Events;
|
||||
|
||||
public abstract class EventQueueBuilder<TQueue> where TQueue : EventQueue<TQueue>;
|
||||
Reference in New Issue
Block a user