src/packages/EmbedIO/WebModuleContainerExtensions-Security.cs
/// <summary>
/// Creates an instance of <see cref="IPBanningModule" /> and adds it to a module container.
/// </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="configure">The configure.</param>
/// <param name="whiteList">A collection of valid IPs that never will be banned.</param>
/// <param name="banMinutes">Minutes that an IP will remain banned.</param>
/// <returns>
///   <paramref name="this" /> with an <see cref="IPBanningModule" /> added.
/// </returns>
Creates an instance of  and adds it to a module container.
Creates an instance of and adds it to a module container .
public static TContainer WithIPBanning<TContainer>(
            this TContainer @this,
            Action<IPBanningModule>? configure,
            IEnumerable<string>? whiteList = null,
            int banMinutes = IPBanningModule.DefaultBanMinutes)
            where TContainer : class, IWebModuleContainer =>
            WithModule(@this, new IPBanningModule("/", whiteList, banMinutes), configure);
public static TContainer WithIPBanning < TContainer > ( this TContainer @this , Action < IPBanningModule > ? configure , IEnumerable < string > ? whiteList = null , int banMinutes = IPBanningModule . DefaultBanMinutes ) where TContainer : class , IWebModuleContainer => WithModule ( @this , new IPBanningModule ( " " , whiteList , banMinutes ) , configure ) ;
Creates an instance of  and adds it to a module container.
Creates an instance of and adds it to a module container .
with an  added.
with an added .
TContainer
this
configure
Action<IPBanningModule>?
None
whiteList
IEnumerable<string>?
A collection of valid IPs that never will be banned.
A collection of valid IPs that never will be banned .
banMinutes
int
Minutes that an IP will remain banned.
Minutes that an IP will remain banned .
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 .