/// <summary> /// Registers a new extension with the host. /// </summary> /// <param name="extension"></param> public void Add(IExtension extension) { if (extension == null) { throw new ArgumentNullException("extension"); } extension.OnRegister(_host); this.List.Add(extension); }