예제 #1
0
        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;
        }
예제 #2
0
        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;
        }
예제 #3
0
        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;
            }
        }