Interface IResourceFactory
- Namespace
- JsonApiDotNetCore.Resources
- Assembly
- JsonApiDotNetCore.dll
Creates object instances for resource classes, which may have injectable dependencies.
public interface IResourceFactory
Methods
CreateInstance(Type)
Creates a new resource object instance.
IIdentifiable CreateInstance(Type resourceClrType)
Parameters
resourceClrType
Type
Returns
CreateInstance<TResource>()
Creates a new resource object instance.
TResource CreateInstance<TResource>() where TResource : IIdentifiable
Returns
- TResource
Type Parameters
TResource
CreateNewExpression(Type)
Returns an expression tree that represents creating a new resource object instance.
NewExpression CreateNewExpression(Type resourceClrType)
Parameters
resourceClrType
Type