public void Prime() { var handlerTypes = assemblyScanner.FindTypes(typeof(IHandle <>)); Clear(); foreach (var handlerType in handlerTypes) { logger.LogDebug($"Found handler {handlerType.Name}"); Add(handlerType); } }