示例#1
0
        // 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);
            }
        }
示例#2
0
 public void OnModuleStarted(string moduleName) => ModuleStarted?.Invoke(moduleName);