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