IClassFactoryRegisterInstanceTI Method (TI) |
Registers an implementation of an interface. The instance passed across will be returned
on each call to Resolve.
Namespace: InterfaceFactoryAssembly: InterfaceFactory (in InterfaceFactory.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax void RegisterInstance<TI>(
TI instance
)
Sub RegisterInstance(Of TI) (
instance As TI
)
generic<typename TI>
void RegisterInstance(
TI instance
)
abstract RegisterInstance :
instance : 'TI -> unit
Parameters
- instance
- Type: TI
An object whose type implements TI.
Type Parameters
- TI
- The interface type.
See Also