Summary
Registers the specified module type.
- Namespace
- Cake
.Frosting - Containing Type
- Service
Collection Extensions
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. |
