forked from JSONAPIdotNET/JSONAPI.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIDocumentMaterializerLocator.cs
More file actions
25 lines (22 loc) · 904 Bytes
/
IDocumentMaterializerLocator.cs
File metadata and controls
25 lines (22 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
namespace JSONAPI.Http
{
/// <summary>
/// Service to lookup document materializers
/// </summary>
public interface IDocumentMaterializerLocator
{
/// <summary>
/// Resolves a <see cref="IDocumentMaterializer"/> for the given resource type name.
/// </summary>
IDocumentMaterializer GetMaterializerByResourceTypeName(string resourceTypeName);
/// <summary>
/// Resolves a <see cref="IDocumentMaterializer"/> for the given type.
/// </summary>
IDocumentMaterializer GetMaterializerByType(Type type);
/// <summary>
/// Resolves a <see cref="IRelatedResourceDocumentMaterializer" /> for the given resource type and relationship.
/// </summary>
IRelatedResourceDocumentMaterializer GetRelatedResourceMaterializer(string resourceTypeName, string relationshipName);
}
}