src/packages/EmbedIO/Files/FileModuleExtensions.cs
/// <summary>
/// Enables caching of file contents and directory listings on 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>
/// <returns><paramref name="this"/> with its <see cref="FileModule.ContentCaching">ContentCaching</see> property
/// set to <see langword="true"/>.</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.ContentCaching"/>
Enables caching of file contents and directory listings on a module.
Enables caching of file contents and directory listings on a module .
public static TModule WithContentCaching<TModule>(this TModule @this)
            where TModule : FileModule
        {
            @this.ContentCaching = true;
            return @this;
        }
public static TModule WithContentCaching < TModule > ( this TModule @this ) where TModule : FileModule { @this . ContentCaching = true ; return @this ; }
Enables caching of file contents and directory listings on a module.
Enables caching of file contents and directory listings on a module .
with its ContentCaching.
with its ContentCaching .
None
The configuration of  is locked.
The configuration of is locked .
TModule
this
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