CakeHostExtensions.

UseTeardown<TTeardown>(CakeHost) Method

Summary

Registers a teardown action.
Namespace
Cake.Frosting
Containing Type
CakeHostExtensions

Syntax

public static CakeHost UseTeardown<TTeardown>(this CakeHost host) 
    where TTeardown : class, IFrostingTeardown

Type Parameters

Name Description
TTeardown The teardown action.

Parameters

Name Type Description
host CakeHost The service collection.

Return Value

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