CakeHostExtensions.

UseModule<TModule>(CakeHost) Method

Summary

Registers the specified module type.
Namespace
Cake.Frosting
Containing Type
CakeHostExtensions

Syntax

public static CakeHost UseModule<TModule>(this CakeHost host) where TModule : ICakeModule, new()

Type Parameters

Name Description
TModule The type of the module.

Parameters

Name Type Description
host CakeHost The CakeHost to configure.

Return Value

Type Description
CakeHost The same CakeHost instance so that multiple calls can be chained.