ServiceCollectionExtensions.

UseSetup<TSetup>(IServiceCollection) Method

Summary

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

Syntax

public static IServiceCollection UseSetup<TSetup>(this IServiceCollection services) 
    where TSetup : class, IFrostingSetup

Type Parameters

Name Description
TSetup The setup 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.