Skip to main content

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
TypeName
System.Typetype

AddSingleton(Type, Func<Object>)

View Source
Declaration
IContainer AddSingleton(Type type, Func<object> factory)
Returns

ServiceStack.IContainer

Parameters
TypeName
System.Typetype
System.Func<System.Object>factory

AddTransient(Type, Func<Object>)

View Source
Declaration
IContainer AddTransient(Type type, Func<object> factory)
Returns

ServiceStack.IContainer

Parameters
TypeName
System.Typetype
System.Func<System.Object>factory

Resolve(Type)

View Source
Declaration
object Resolve(Type type)
Returns

System.Object

Parameters
TypeName
System.Typetype

Exists(Type)

View Source
Declaration
bool Exists(Type type)
Returns

System.Boolean

Parameters
TypeName
System.Typetype