Ejemplo n.º 1
0
        /// <summary>
        /// Run the specified <see cref="IKickStarter"/> extension on startup.
        /// </summary>
        /// <param name="starter">The <see cref="IKickStarter"/> extension to run.</param>
        /// <returns>
        /// A fluent <see langword="interface"/> to configure KickStart.
        /// </returns>
        /// <exception cref="ArgumentNullException"><paramref name="starter"/> is <c>null</c>.</exception>
        public IConfigurationBuilder Use(IKickStarter starter)
        {
            if (starter == null)
            {
                throw new ArgumentNullException(nameof(starter));
            }

            _configuration.Starters.Add(starter);
            return(this);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Run the specified <see cref="IKickStarter"/> extension on startup.
 /// </summary>
 /// <param name="starter">The <see cref="IKickStarter"/> extension to run.</param>
 /// <returns>
 /// A fluent <see langword="interface"/> to configure KickStart.
 /// </returns>
 public IConfigurationBuilder Use(IKickStarter starter)
 {
     _configuration.Starters.Add(starter);
     return(this);
 }