Summary
Registers a task teardown action.
- Namespace
- Cake
.Frosting - Containing Type
- Service
Collection Extensions
Syntax
public static IServiceCollection UseTaskTeardown<TTeardown>(this IServiceCollection services)
where TTeardown : class, IFrostingTaskTeardown
Type Parameters
Name | Description |
---|---|
TTeardown | The task 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. |