public void RegisterConsumer <TEvent>(IEventConsumer eventConsumer) where TEvent : IEvent { Consumers.GetOrAdd(typeof(TEvent), new List <IEventConsumer> { eventConsumer }); //?.Add(eventConsumer); eventConsumer.Init(this); Log(LogType.ConsumerRegistered, source: eventConsumer as ILogSource); }