Sisk

Method

HttpServerHostContextBuilder.UseAutoScan<TModule>

Namespace
Sisk.Core.Http.Hosting
Assembly
Sisk.Core.dll

UseAutoScan<TModule>() #

This method is an shortcut for calling AutoScanModules.

C#
[RequiresUnreferencedCode("This method requires access to unreferenced code, which may break AOT compilation and trimming.")]
public HttpServerHostContextBuilder UseAutoScan<TModule>() where TModule : RouterModule

Returns #

HttpServerHostContextBuilder

Type Parameters #

TModule

An class which implements RouterModule, or the router module itself.

UseAutoScan<TModule>(Assembly) #

This method is an shortcut for calling AutoScanModules.

C#
[RequiresUnreferencedCode("This method requires access to unreferenced code, which may break AOT compilation and trimming.")]
public HttpServerHostContextBuilder UseAutoScan<TModule>(Assembly t) where TModule : RouterModule

Parameters #

t Assembly

The assembly where the scanning types are.

Returns #

HttpServerHostContextBuilder

Type Parameters #

TModule

An class which implements RouterModule, or the router module itself.

Type to search the documentation and the API reference.