Skip to content

Instantly share code, notes, and snippets.

View KaiStarkk's full-sized avatar

Kieran Hannigan KaiStarkk

View GitHub Profile
public abstract class EventBusBase
{
protected readonly List<Object> _publishers = new();
// More EventBus implementation.
// Notably, doesn't have a member for the event, nor any methods
// accessing the event, because it won't be possible to override
// the event in sub-classes with different delegates. So most methods
// have to be repeated as below.
}
}