RegisterInstance<TService, TImplementation>(TImplementation) Method

Registers the specified instance with the type registrar as a singleton.
void RegisterInstance<TService, TImplementation>(TImplementation instance) 
    where TImplementation : TService
Containing Type
ITypeRegistrarFrontend

Parameters

TService
The exposed service type.
TImplementation
implementing type.

Parameters

TImplementation instance
The instance to register.