Table of Contents

Method AutoScanModules

Namespace
Sisk.Core.Routing
Assembly
Sisk.Core.dll

AutoScanModules(Type, Assembly)

Scans for all types that implements the specified module type and associates an instance of each type to the router.

public void AutoScanModules(Type moduleType, Assembly searchAssembly)

Parameters

moduleType Type

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

searchAssembly Assembly

The assembly to search the module type in.

AutoScanModules<TModule>(Assembly)

Scans for all types that implements TModule and associates an instance of each type to the router. Note that, TModule must be an RouterModule type and an accessible constructor for each type must be present.

public void AutoScanModules<TModule>(Assembly assembly) where TModule : RouterModule

Parameters

assembly Assembly

The assembly to search TModule in.

Type Parameters

TModule

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

AutoScanModules<TModule>()

Scans for all types that implements TModule and associates an instance of each type to the router. Note that, TModule must be an RouterModule type and an accessible constructor for each type must be present.

public void AutoScanModules<TModule>() where TModule : RouterModule

Type Parameters

TModule

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