public virtual void AddSubSystem(String key, ISubSystem subsystem) { if (key == null) { throw new ArgumentNullException("key"); } if (subsystem == null) { throw new ArgumentNullException("facility"); } subsystem.Init(this); subsystems[key] = subsystem; }
public virtual void AddSubSystem(String name, ISubSystem subsystem) { if (name == null) { throw new ArgumentNullException("name"); } if (subsystem == null) { throw new ArgumentNullException("subsystem"); } subsystem.Init(this); subsystems[name] = subsystem; }
public virtual void AddSubSystem(string name, ISubSystem subsystem) { if (name == null) { throw new ArgumentNullException(nameof(name)); } if (subsystem == null) { throw new ArgumentNullException(nameof(subsystem)); } subsystem.Init(this); subsystems[name] = subsystem; if (name == SubSystemConstants.ConversionManagerKey) { ConversionSubSystem = (IConversionManager)subsystem; } else if (name == SubSystemConstants.NamingKey) { NamingSubSystem = (INamingSubSystem)subsystem; } }