ServiceCollectionExtensions.

UseTeardown<TTeardown>(IServiceCollection) Method

Summary

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

Syntax

public static IServiceCollection UseTeardown<TTeardown>(this IServiceCollection services) 
    where TTeardown : class, IFrostingTeardown

Type Parameters

Name Description
TTeardown The teardown action.

Parameters

Name Type Description
services IServiceCollection The service collection.

Return Value

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