ContainerRegistrar.

RegisterInstance<TImplementation>(TImplementation) Method

Summary

Registers an instance with the container registry.
Namespace
Cake.Cli
Containing Type
ContainerRegistrar

Syntax

public ICakeRegistrationBuilder RegisterInstance<TImplementation>(TImplementation instance) 
    where TImplementation : class

Type Parameters

Name Description
TImplementation The instance's implementation type to register.

Parameters

Name Type Description
instance TImplementation The instance to register.

Return Value

Type Description
ICakeRegistrationBuilder A registration builder used to configure the registration.