CakeHostExtensions.

UseTaskLifetime<TLifetime>(CakeHost) Method

Summary

Registers the specified task lifetime type. Only the last registration will be used.
Namespace
Cake.Frosting
Containing Type
CakeHostExtensions

Syntax

public static CakeHost UseTaskLifetime<TLifetime>(this CakeHost host) 
    where TLifetime : class, IFrostingTaskLifetime

Type Parameters

Name Description
TLifetime The type of the lifetime.

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.