IContainer
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IContainer
Methods
CreateFactory(Type)
View Source
Declaration
Func<object> CreateFactory(Type type)
Returns
System.Func<System.Object>
Parameters
Type | Name |
---|---|
System.Type | type |
AddSingleton(Type, Func<Object>)
View Source
Declaration
IContainer AddSingleton(Type type, Func<object> factory)
Returns
Parameters
Type | Name |
---|---|
System.Type | type |
System.Func<System.Object> | factory |
AddTransient(Type, Func<Object>)
View Source
Declaration
IContainer AddTransient(Type type, Func<object> factory)
Returns
Parameters
Type | Name |
---|---|
System.Type | type |
System.Func<System.Object> | factory |
Resolve(Type)
View Source
Declaration
object Resolve(Type type)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Type | type |
Exists(Type)
View Source
Declaration
bool Exists(Type type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | type |