C# Class XInject.Containers.HashContainer

Inheritance: Container
Mostra file Open project: radixeng/XInject Class Usage Examples

Public Methods

Method Description
ContainsInstanceOfSingleton ( Type type ) : bool
CreateStackScope ( int scope_id, Type type, object constructor_args ) : void
DestroyStackScope ( int scope_id, Type type ) : void
InstanceFrom ( Type type ) : object
InstanceFrom ( Type type, object constructor_args ) : object
InstanceFromWithScope ( int scope_id, Type type, object constructor_args ) : object
IsSingleton ( Type abstractType ) : bool
IsStackScope ( Type abstractType ) : bool
Register ( Type abstractType, Type concreteType ) : void
RegisterSingletonInstance ( Type singleton, object instance ) : void
Resolve ( Type abstractType ) : Type

Method Details

ContainsInstanceOfSingleton() public method

public ContainsInstanceOfSingleton ( Type type ) : bool
type System.Type
return bool

CreateStackScope() public method

public CreateStackScope ( int scope_id, Type type, object constructor_args ) : void
scope_id int
type System.Type
constructor_args object
return void

DestroyStackScope() public method

public DestroyStackScope ( int scope_id, Type type ) : void
scope_id int
type System.Type
return void

InstanceFrom() public method

public InstanceFrom ( Type type ) : object
type System.Type
return object

InstanceFrom() public method

public InstanceFrom ( Type type, object constructor_args ) : object
type System.Type
constructor_args object
return object

InstanceFromWithScope() public method

public InstanceFromWithScope ( int scope_id, Type type, object constructor_args ) : object
scope_id int
type System.Type
constructor_args object
return object

IsSingleton() public method

public IsSingleton ( Type abstractType ) : bool
abstractType System.Type
return bool

IsStackScope() public method

public IsStackScope ( Type abstractType ) : bool
abstractType System.Type
return bool

Register() public method

public Register ( Type abstractType, Type concreteType ) : void
abstractType System.Type
concreteType System.Type
return void

RegisterSingletonInstance() public method

public RegisterSingletonInstance ( Type singleton, object instance ) : void
singleton System.Type
instance object
return void

Resolve() public method

public Resolve ( Type abstractType ) : Type
abstractType System.Type
return System.Type