src/packages/EmbedIO/Authentication/AuthenticationModuleBaseExtensions.cs
/// <summary>
/// Sets an <see cref="AuthenticationHandlerCallback"/> that is called by an authentication module
/// when authentication could not take place.
/// </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="AuthenticationModuleBase.OnMissingCredentials">OnMissingCredentials</see>
/// property set to <paramref name="callback"/>.</returns>
Sets an  that is called by an authentication module
when authentication could not take place.
Sets an that is called by an authentication module when authentication could not take place .
public static TModule HandleMissingCredentials<TModule>(this TModule @this, AuthenticationHandlerCallback callback)
            where TModule : AuthenticationModuleBase
        {
            @this.OnMissingCredentials = callback;
            return @this;
        }
public static TModule HandleMissingCredentials < TModule > ( this TModule @this , AuthenticationHandlerCallback callback ) where TModule : AuthenticationModuleBase { @this . OnMissingCredentials = callback ; return @this ; }
Sets an  that is called by an authentication module
when authentication could not take place.
Sets an that is called by an authentication module when authentication could not take place .
with its OnMissingCredentials.
with its OnMissingCredentials .
TModule
this
callback
AuthenticationHandlerCallback
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 .