Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Mainboard"/> class.
        /// </summary>
        /// <param name="configure">The configuration options of <see cref="Mainboard"/> specific features.</param>
        public Mainboard(HardwareOptionsDelegate configure)
        {
            var options = new HardwareOptions();

            configure(options);

            _options = options;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Mainboard"/> class.
        /// </summary>
        /// <param name="options">The configuration options of <see cref="Mainboard"/> specific features.</param>
        public Mainboard(HardwareOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            _options = options;
        }