src/packages/EmbedIO/WebServerOptionsExtensions.cs
/// <summary>
/// Adds zero or more URL prefixes.
/// </summary>
/// <param name="this">The <see cref="WebServerOptions"/> on which this method is called.</param>
/// <param name="urlPrefixes">An enumeration of URL prefixes to add.</param>
/// <returns><paramref name="this"/> with every non-<see langword="null"/> element
/// of <paramref name="urlPrefixes"/> added.</returns>
/// <exception cref="NullReferenceException"><paramref name="this"/> is <see langword="null"/>.</exception>
/// <exception cref="InvalidOperationException">The configuration of <paramref name="this"/> is locked.</exception>
/// <exception cref="ArgumentNullException"><paramref name="urlPrefixes"/> is <see langword="null"/>.</exception>
/// <exception cref="ArgumentException">
/// <para>One or more of the elements of <paramref name="urlPrefixes"/> is the empty string.</para>
/// <para>- or -</para>
/// <para>One or more of the elements of <paramref name="urlPrefixes"/> is already registered.</para>
/// </exception>
Adds zero or more URL prefixes.
Adds zero or more URL prefixes .
public static WebServerOptions WithUrlPrefixes(this WebServerOptions @this, IEnumerable<string> urlPrefixes)
        {
            foreach (var urlPrefix in Validate.NotNull(nameof(urlPrefixes), urlPrefixes))
                @this.AddUrlPrefix(urlPrefix);
            return @this;
        }
public static WebServerOptions WithUrlPrefixes ( this WebServerOptions @this , IEnumerable < string > urlPrefixes ) { foreach ( var urlPrefix in Validate . NotNull ( nameof ( urlPrefixes ) , urlPrefixes ) ) @this . AddUrlPrefix ( urlPrefix ) ; return @this ; }
Adds zero or more URL prefixes.
Adds zero or more URL prefixes .
with every non- element
of  added.
with every non - element of added .
None
The configuration of  is locked.
The configuration of is locked .
None
One or more of the elements of  is the empty string.- or -One or more of the elements of  is already registered.
One or more of the elements of is the empty string . - or - One or more of the elements of is already registered .
WebServerOptions
this
urlPrefixes
IEnumerable<string>
An enumeration of URL prefixes to add.
An enumeration of URL prefixes to add .
this
The  on which this method is called.
The on which this method is called .