src/packages/EmbedIO/WebApi/WebApiModuleExtensions.cs
/// <summary>
/// <para>Registers a controller type using a factory method.</para>
/// <para>See <see cref="WebApiModuleBase.RegisterControllerType{TController}(Func{TController})"/>
/// for further information.</para>
/// </summary>
/// <typeparam name="TController">The type of the controller.</typeparam>
/// <param name="this">The <see cref="WebApiModule"/> on which this method is called.</param>
/// <param name="factory">The factory method used to construct instances of <typeparamref name="TController"/>.</param>
/// <returns><paramref name="this"/> with the controller type registered.</returns>
/// <seealso cref="WithController{TController}(WebApiModule)"/>
/// <seealso cref="WithController(WebApiModule,Type,Func{WebApiController})"/>
/// <seealso cref="WebApiModuleBase.RegisterControllerType{TController}(Func{TController})"/>
Registers a controller type using a factory method.See
for further information.
Registers a controller type using a factory method . See for further information .
public static WebApiModule WithController<TController>(this WebApiModule @this, Func<TController> factory)
            where TController : WebApiController
        {
            @this.RegisterController(factory);
            return @this;
        }
public static WebApiModule WithController < TController > ( this WebApiModule @this , Func < TController > factory ) where TController : WebApiController { @this . RegisterController ( factory ) ; return @this ; }
Registers a controller type using a factory method.See
for further information.
Registers a controller type using a factory method . See for further information .
with the controller type registered.
with the controller type registered .
WebApiModule
this
factory
Func<TController>
The factory method used to construct instances of .
The factory method used to construct instances of .
this
The  on which this method is called.
The on which this method is called .
typeparam
The type of the controller.
The type of the controller .
seealso
None
seealso
None
seealso
None