ServiceCollectionExtensions Class

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, string, string) IServiceCollection
Sets the specified Cake setting to the specified value.
static
UseContext<TContext>(IServiceCollection) IServiceCollection
Registers the specified context type. Only the last registration will be used.
static
UseLifetime<TLifetime>(IServiceCollection) IServiceCollection
Registers the specified lifetime type. Only the last registration will be used.
static
UseModule<TModule>(IServiceCollection) IServiceCollection
Registers the specified module type.
static
UsePackageInstaller<TPackageInstaller>(IServiceCollection) IServiceCollection
Registers a package installer.
static
UseSetup<TSetup>(IServiceCollection) IServiceCollection
Registers a setup action.
static
UseTaskLifetime<TLifetime>(IServiceCollection) IServiceCollection
Registers the specified task lifetime type. Only the last registration will be used.
static
UseTaskSetup<TSetup>(IServiceCollection) IServiceCollection
Registers a task setup action.
static
UseTaskTeardown<TTeardown>(IServiceCollection) IServiceCollection
Registers a task teardown action.
static
UseTeardown<TTeardown>(IServiceCollection) IServiceCollection
Registers a teardown action.
static
UseTool(IServiceCollection, Uri) IServiceCollection
Registers a specific tool for installation.
static
UseWorkingDirectory(IServiceCollection, DirectoryPath) IServiceCollection
Sets the relative working directory to be used when running the build.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin