SimpleContainer

Overview

Location


Instance Methods


constructor

 

constructor

 

SimpleContainer()

 

Sub New()

GetInstance

 

method GetInstance(serviceType: Type): Object

 

Object GetInstance(Type serviceType)

 

Function GetInstance(serviceType As Type) As Object

Parameters:

  • serviceType:

Register (Type)

 

method Register(serviceType: Type)

 

void Register(Type serviceType)

 

Sub Register(serviceType As Type)

Parameters:

  • serviceType:

Register (Type, Func<Object>)

 

method Register(serviceType: Type; factory: Func<Object>)

 

void Register(Type serviceType, Func<Object> factory)

 

Sub Register(serviceType As Type, factory As Func (Of Object))

Parameters:

  • serviceType:
  • factory:

Register (Type, Type)

 

method Register(serviceType: Type; implementationType: Type)

 

void Register(Type serviceType, Type implementationType)

 

Sub Register(serviceType As Type, implementationType As Type)

Parameters:

  • serviceType:
  • implementationType:

Register<TService,TImplementation>

 

method Register<TService,TImplementation>

 

void Register<TService,TImplementation>()

 

Sub Register<TService,TImplementation>()

Register<TService>

 

method Register<TService>

 

void Register<TService>()

 

Sub Register<TService>()

Register<TService> (Func<Object>)

 

method Register<TService>(factory: Func<Object>)

 

void Register<TService>(Func<Object> factory)

 

Sub Register<TService>(factory As Func (Of Object))

Parameters:

  • factory:

RegisterSingleton (Type)

 

method RegisterSingleton(serviceType: Type)

 

void RegisterSingleton(Type serviceType)

 

Sub RegisterSingleton(serviceType As Type)

Parameters:

  • serviceType:

RegisterSingleton (Type, Type)

 

method RegisterSingleton(serviceType: Type; implementationType: Type)

 

void RegisterSingleton(Type serviceType, Type implementationType)

 

Sub RegisterSingleton(serviceType As Type, implementationType As Type)

Parameters:

  • serviceType:
  • implementationType:

RegisterSingleton (Type, Object)

 

method RegisterSingleton(serviceType: Type; instance: Object)

 

void RegisterSingleton(Type serviceType, Object instance)

 

Sub RegisterSingleton(serviceType As Type, instance As Object)

Parameters:

  • serviceType:
  • instance:

RegisterSingleton<TService,TImplementation>

 

method RegisterSingleton<TService,TImplementation>

 

void RegisterSingleton<TService,TImplementation>()

 

Sub RegisterSingleton<TService,TImplementation>()

RegisterSingleton<TService>

 

method RegisterSingleton<TService>

 

void RegisterSingleton<TService>()

 

Sub RegisterSingleton<TService>()

RegisterSingleton<TService> (TService)

 

method RegisterSingleton<TService>(instance: TService)

 

void RegisterSingleton<TService>(TService instance)

 

Sub RegisterSingleton<TService>(instance As TService)

Parameters:

  • instance: