Skip to main content

ContainerResolveCache

Assembly: ServiceStack.dll
View Source
Declaration
public class ContainerResolveCache : ITypeFactory

Methods

CreateInstance(IResolver, Type)

Creates instance using straight Resolve approach. This will throw an exception if resolution fails

View Source
Declaration
public object CreateInstance(IResolver resolver, Type type)
Returns

System.Object

Parameters
TypeName
ServiceStack.Configuration.IResolverresolver
System.Typetype

CreateInstance(IResolver, Type, Boolean)

Creates instance using the TryResolve approach if tryResolve = true. Otherwise uses Resolve approach, which will throw an exception if resolution fails

View Source
Declaration
public object CreateInstance(IResolver resolver, Type type, bool tryResolve)
Returns

System.Object

Parameters
TypeName
ServiceStack.Configuration.IResolverresolver
System.Typetype
System.BooleantryResolve

Implements