src/packages/EmbedIO/WebApi/WebApiModuleExtensions.cs
/// <summary>
/// <para>Registers a controller type using a constructor.</para>
/// <para>See <see cref="WebApiModuleBase.RegisterControllerType{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>
/// <returns><paramref name="this"/> with the controller type registered.</returns>
/// <seealso cref="WithController{TController}(WebApiModule,Func{TController})"/>
/// <seealso cref="WithController(WebApiModule,Type)"/>
/// <seealso cref="WebApiModuleBase.RegisterControllerType{TController}()"/>
Registers a controller type using a constructor.See
for further information.
Registers a controller type using a constructor . See for further information .
public static WebApiModule WithController<TController>(this WebApiModule @this)
            where TController : WebApiController, new()
        {
            @this.RegisterController<TController>();
            return @this;
        }
public static WebApiModule WithController < TController > ( this WebApiModule @this ) where TController : WebApiController , new ( ) { @this . RegisterController < TController > ( ) ; return @this ; }
Registers a controller type using a constructor.See
for further information.
Registers a controller type using a constructor . See for further information .
with the controller type registered.
with the controller type registered .
WebApiModule
this
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