Summary
Contains extensions for
IServiceCollection.
- Namespace
- Cake
.Frosting - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["ServiceCollectionExtensions"]
class Type type-node
Syntax
public static class ServiceCollectionExtensions
Methods
| Name | Value | Summary |
|---|---|---|
| UseCakeSetting |
IServiceCollection |
Sets the specified Cake setting to the specified value.
static
|
| UseContext |
IServiceCollection |
Registers the specified context type.
Only the last registration will be used.
static
|
| UseLifetime |
IServiceCollection |
Registers the specified lifetime type.
Only the last registration will be used.
static
|
| UseModule |
IServiceCollection |
Registers the specified module type.
static
|
| UsePackageInstaller |
IServiceCollection |
Registers a package installer.
static
|
| UseSetup |
IServiceCollection |
Registers a setup action.
static
|
| UseTaskLifetime |
IServiceCollection |
Registers the specified task lifetime type.
Only the last registration will be used.
static
|
| UseTaskSetup |
IServiceCollection |
Registers a task setup action.
static
|
| UseTaskTeardown |
IServiceCollection |
Registers a task teardown action.
static
|
| UseTeardown |
IServiceCollection |
Registers a teardown action.
static
|
| UseTool |
IServiceCollection |
Registers a specific tool for installation.
static
|
| UseToolPath |
IServiceCollection |
Sets the tool path configuration to the specified value.
static
|
| UseWorkingDirectory |
IServiceCollection |
Sets the relative working directory to be used when running the build.
static
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
