src/packages/EmbedIO/Files/FileModuleExtensions.cs
/// <summary>
/// Sets the <see cref="FileCache"/> used by a module to store hashes and,
/// optionally, file contents and rendered directory listings.
/// </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 instance of <see cref="FileCache"/>.</param>
/// <returns><paramref name="this"/> with its <see cref="FileModule.Cache">Cache</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>
/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception>
/// <seealso cref="FileModule.Cache"/>
Sets the  used by a module to store hashes and,
optionally, file contents and rendered directory listings.
Sets the used by a module to store hashes and optionally file contents and rendered directory listings .
public static TModule WithCache<TModule>(this TModule @this, FileCache value)
            where TModule : FileModule
        {
            @this.Cache = value;
            return @this;
        }
public static TModule WithCache < TModule > ( this TModule @this , FileCache value ) where TModule : FileModule { @this . Cache = value ; return @this ; }
Sets the  used by a module to store hashes and,
optionally, file contents and rendered directory listings.
Sets the used by a module to store hashes and optionally file contents and rendered directory listings .
with its Cache.
with its Cache .
None
The configuration of  is locked.
The configuration of is locked .
None
TModule
this
value
FileCache
An instance of .
An instance of .
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