ServiceCollectionExtensions.

UseModule<TModule>(IServiceCollection) Method

Summary

Registers the specified module type.
Namespace
Cake.Frosting
Containing Type
ServiceCollectionExtensions

Syntax

public static IServiceCollection UseModule<TModule>(this IServiceCollection services) 
    where TModule : ICakeModule, new()

Type Parameters

Name Description
TModule The type of the module.

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.