src/packages/EmbedIO/Files/FileModuleExtensions.cs
/// <summary>
/// Sets the default extension appended to requested URL paths that do not map
/// to any file or directory.
/// </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">The default extension.</param>
/// <returns><paramref name="this"/> with its <see cref="FileModule.DefaultExtension">DefaultExtension</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="ArgumentException"><paramref name="value"/> is a non-<see langword="null"/>,
/// non-empty string that does not start with a period (<c>.</c>).</exception>
/// <seealso cref="FileModule.DefaultExtension"/>
Sets the default extension appended to requested URL paths that do not map
to any file or directory.
Sets the default extension appended to requested URL paths that do not map to any file or directory .
public static TModule WithDefaultExtension<TModule>(this TModule @this, string value)
            where TModule : FileModule
        {
            @this.DefaultExtension = value;
            return @this;
        }
public static TModule WithDefaultExtension < TModule > ( this TModule @this , string value ) where TModule : FileModule { @this . DefaultExtension = value ; return @this ; }
Sets the default extension appended to requested URL paths that do not map
to any file or directory.
Sets the default extension appended to requested URL paths that do not map to any file or directory .
with its DefaultExtension.
with its DefaultExtension .
None
The configuration of  is locked.
The configuration of is locked .
None
TModule
this
value
string
The default extension.
The default extension .
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