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
| Type | Name |
|---|---|
| ServiceStack.Configuration.IResolver | resolver |
System.Type | type |
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
| Type | Name |
|---|---|
| ServiceStack.Configuration.IResolver | resolver |
System.Type | type |
System.Boolean | tryResolve |