// TODO: This should be internal, but we have to split the interface to do this. public void Started(ModuleIdentifier module) { bool added; lock (_mutex) { added = !_modules.Contains(module); if (added) { _modules = _modules.Add(module); } } if (added) { ModuleStarted?.InvokeAll(this, module); } }
public void OnModuleStarted(string moduleName) => ModuleStarted?.Invoke(moduleName);