src/packages/EmbedIO/WebModuleContainerExtensions.cs
/// <summary>
/// Adds the specified <paramref name="module"/> to a module container,
/// giving it the specified <paramref name="name"/> if not <see langword="null"/>.
/// </summary>
/// <typeparam name="TContainer">The type of the module container.</typeparam>
/// <param name="this">The <typeparamref name="TContainer"/> on which this method is called.</param>
/// <param name="name">The name.</param>
/// <param name="module">The module.</param>
/// <returns><paramref name="this"/> with <paramref name="module"/> added.</returns>
/// <exception cref="NullReferenceException"><paramref name="this"/> is <see langword="null"/>.</exception>
/// <seealso cref="IWebModuleContainer.Modules"/>
/// <seealso cref="IComponentCollection{T}.Add"/>
Adds the specified  to a module container,
giving it the specified  if not .
Adds the specified to a module container giving it the specified if not .
public static TContainer WithModule<TContainer>(this TContainer @this, string? name, IWebModule module)
            where TContainer : class, IWebModuleContainer
        {
            @this.Modules.Add(name, module);
            return @this;
        }
public static TContainer WithModule < TContainer > ( this TContainer @this , string ? name , IWebModule module ) where TContainer : class , IWebModuleContainer { @this . Modules . Add ( name , module ) ; return @this ; }
Adds the specified  to a module container,
giving it the specified  if not .
Adds the specified to a module container giving it the specified if not .
None
None
TContainer
this
name
string?
None
module
IWebModule
None
this
The  on which this method is called.
The on which this method is called .
typeparam
The type of the module container.
The type of the module container .
seealso
None
seealso
None