Table of Contents

Class CreateProcessor<TResource, TId>

Namespace
JsonApiDotNetCore.AtomicOperations.Processors
Assembly
JsonApiDotNetCore.dll

Processes a single operation to create a new resource with attributes, relationships or both.

[PublicAPI]
public class CreateProcessor<TResource, TId> : ICreateProcessor<TResource, TId>, IOperationProcessor where TResource : class, IIdentifiable<TId>

Type Parameters

TResource

The resource type.

TId

The resource identifier type.

Inheritance
CreateProcessor<TResource, TId>
Implements
ICreateProcessor<TResource, TId>
Inherited Members

Constructors

CreateProcessor(ICreateService<TResource, TId>, ILocalIdTracker)

public CreateProcessor(ICreateService<TResource, TId> service, ILocalIdTracker localIdTracker)

Parameters

service ICreateService<TResource, TId>
localIdTracker ILocalIdTracker

Methods

ProcessAsync(OperationContainer, CancellationToken)

Processes the specified operation.

public virtual Task<OperationContainer?> ProcessAsync(OperationContainer operation, CancellationToken cancellationToken)

Parameters

operation OperationContainer
cancellationToken CancellationToken

Returns

Task<OperationContainer>