src/packages/EmbedIO/Files/FileModuleExtensions.cs
/// <summary>
/// Sets a <see cref="FileRequestHandlerCallback"/> that is called by a module whenever
/// the requested URL path could not be mapped 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="callback">The method to call.</param>
/// <returns><paramref name="this"/> with its <see cref="FileModule.OnMappingFailed">OnMappingFailed</see> property
/// set to <paramref name="callback"/>.</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="callback"/> is <see langword="null"/>.</exception>
/// <seealso cref="FileModule.OnMappingFailed"/>
/// <seealso cref="FileRequestHandler"/>
Sets a  that is called by a module whenever
the requested URL path could not be mapped to any file or directory.
Sets a that is called by a module whenever the requested URL path could not be mapped to any file or directory .
public static TModule HandleMappingFailed<TModule>(this TModule @this, FileRequestHandlerCallback callback)
            where TModule : FileModule
        {
            @this.OnMappingFailed = callback;
            return @this;
        }
public static TModule HandleMappingFailed < TModule > ( this TModule @this , FileRequestHandlerCallback callback ) where TModule : FileModule { @this . OnMappingFailed = callback ; return @this ; }
Sets a  that is called by a module whenever
the requested URL path could not be mapped to any file or directory.
Sets a that is called by a module whenever the requested URL path could not be mapped to any file or directory .
with its OnMappingFailed.
with its OnMappingFailed .
None
The configuration of  is locked.
The configuration of is locked .
None
TModule
this
callback
FileRequestHandlerCallback
The method to call.
The method to call .
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
seealso
None