ICakeContainerRegistrar Interface

Summary

Represents a container registry used to register types and instances with Cake.
Namespace
Cake.Core.Composition
Implementing Types
graph BT Type["ICakeContainerRegistrar"] class Type type-node Implementing0["AutofacTypeRegistrar"]-.->Type click Implementing0 "/api/Cake.Infrastructure.Composition/AutofacTypeRegistrar"

Syntax

public interface ICakeContainerRegistrar

Methods

Name Value Summary
RegisterInstance<TImplementation>(TImplementation) ICakeRegistrationBuilder
Registers an instance with the container registry.
RegisterType(Type) ICakeRegistrationBuilder
Registers a type with the container registry.

Extension Methods

Name Value Summary
Dump<ICakeContainerRegistrar>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<ICakeContainerRegistrar>(ICakeContainerRegistrar[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<ICakeContainerRegistrar>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<ICakeContainerRegistrar>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
RegisterType<TImplementation>() ICakeRegistrationBuilder
Registers a type with the container registrar.
ThrowIfNull<ICakeContainerRegistrar>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<ICakeContainerRegistrar>(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
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin