ICakeRegistrationBuilder Interface

Summary

Represents a registration builder for a container.
graph BT Type["ICakeRegistrationBuilder"] class Type type-node Implementing0["ContainerRegistrationBuilder<T, TActivator>"]-.->Type click Implementing0 "/api/Cake.Infrastructure.Composition/ContainerRegistrationBuilder_2"

Syntax

public interface ICakeRegistrationBuilder

Methods

Name Value Summary
As(Type) ICakeRegistrationBuilder
Adds a registration type to the configuration.
AsSelf() ICakeRegistrationBuilder
Adds a registration type that matches the implementation type.
Singleton() ICakeRegistrationBuilder
Configure the component so that every dependent component gets the same, shared instance. This is the default lifetime scope.
Transient() ICakeRegistrationBuilder
Configure the component so that every dependent component gets a new, unique instance.

Extension Methods

Name Value Summary
As<TRegistration>() ICakeRegistrationBuilder
Adds a registration type to an existing registration builder.
Dump<ICakeRegistrationBuilder>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<ICakeRegistrationBuilder>(ICakeRegistrationBuilder[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<ICakeRegistrationBuilder>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<ICakeRegistrationBuilder>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<ICakeRegistrationBuilder>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<ICakeRegistrationBuilder>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin