Table of Contents

Method UseAutoScan

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

UseAutoScan<TModule>(bool)

This method is an shortcut for calling AutoScanModules<TModule>().

public HttpServerHostContextBuilder UseAutoScan<TModule>(bool activateInstances = true) where TModule : RouterModule

Parameters

activateInstances bool

Optional. Determines whether found types should be defined as instances or static members.

Returns

HttpServerHostContextBuilder

Type Parameters

TModule

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

UseAutoScan<TModule>(Assembly, bool)

This method is an shortcut for calling AutoScanModules<TModule>().

public HttpServerHostContextBuilder UseAutoScan<TModule>(Assembly t, bool activateInstances = true) where TModule : RouterModule

Parameters

t Assembly

The assembly where the scanning types are.

activateInstances bool

Optional. Determines whether found types should be defined as instances or static members.

Returns

HttpServerHostContextBuilder

Type Parameters

TModule

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