Interaction Workspace 8.0.0 .NET Developer's Guide and API Reference
RegisterInstance<(Of <(TInterface>)>) Method (instance, singleton)
NamespacesGenesyslab.Desktop.Infrastructure.DependencyInjectionIObjectContainerRegisterInstance<(Of <(TInterface>)>)(TInterface, Boolean)
Register an instance with the container.
Declaration Syntax
C#Visual BasicVisual C++
IObjectContainer RegisterInstance<TInterface>(
	TInterface instance,
	bool singleton
)
Function RegisterInstance(Of TInterface) ( _
	instance As TInterface, _
	singleton As Boolean _
) As IObjectContainer
generic<typename TInterface>
IObjectContainer^ RegisterInstance(
	TInterface instance, 
	bool singleton
)
Generic Template Parameters
TInterface
Type of instance to register (may be an implemented interface instead of the full type).
Parameters
instance (TInterface)
Object to returned.
singleton (Boolean)
If set to true the instance is registered as a singleton.
Return Value
The ObjectContainer object that this method was called on.

Assembly: Genesyslab.Desktop.Infrastructure (Module: Genesyslab.Desktop.Infrastructure) Version: 8.0.2.15 (8.0.002.15)