src/packages/EmbedIO/Files/FileModuleExtensions.cs
/// <summary>
/// Sets the <see cref="IDirectoryLister"/> interface used to generate
/// directory listing in a module.
/// </summary>
/// <typeparam name="TModule">The type of the module on which this method is called.</typeparam>
/// <param name="this">The module on which this method is called.</param>
/// <param name="value">An <see cref="IDirectoryLister"/> interface, or <see langword="null"/>
/// to disable the generation of directory listings.</param>
/// <returns><paramref name="this"/> with its <see cref="FileModule.DirectoryLister">DirectoryLister</see> property
/// set to <paramref name="value"/>.</returns>
/// <exception cref="NullReferenceException"><paramref name="this"/> is <see langword="null"/>.</exception>
/// <exception cref="InvalidOperationException">The configuration of <paramref name="this"/> is locked.</exception>
/// <seealso cref="FileModule.DirectoryLister"/>
Sets the  interface used to generate
directory listing in a module.
Sets the interface used to generate directory listing in a module .
public static TModule WithDirectoryLister<TModule>(this TModule @this, IDirectoryLister value)
            where TModule : FileModule
        {
            @this.DirectoryLister = value;
            return @this;
        }
public static TModule WithDirectoryLister < TModule > ( this TModule @this , IDirectoryLister value ) where TModule : FileModule { @this . DirectoryLister = value ; return @this ; }
Sets the  interface used to generate
directory listing in a module.
Sets the interface used to generate directory listing in a module .
with its DirectoryLister.
with its DirectoryLister .
None
The configuration of  is locked.
The configuration of is locked .
TModule
this
value
IDirectoryLister
An  interface, or
to disable the generation of directory listings.
An interface or to disable the generation of directory listings .
this
The module on which this method is called.
The module on which this method is called .
typeparam
The type of the module on which this method is called.
The type of the module on which this method is called .
seealso
None