Interface IGetByIdService<TResource, TId>
- Namespace
- JsonApiDotNetCore.Services
- Assembly
- JsonApiDotNetCore.dll
public interface IGetByIdService<TResource, in TId> where TResource : class, IIdentifiable<in TId>
Type Parameters
TResource
TId
Methods
GetAsync(TId, CancellationToken)
Handles a JSON:API request to retrieve a single resource for a primary endpoint.
Task<TResource> GetAsync(TId id, CancellationToken cancellationToken)
Parameters
id
TIdcancellationToken
CancellationToken
Returns
- Task<TResource>