EventQueue and EventQueueBuilder separated
This commit is contained in:
@@ -2,7 +2,10 @@
|
|||||||
|
|
||||||
namespace TimetableDesigner.Backend.Events;
|
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