Table of Contents

Class OperationsProcessor

Namespace
JsonApiDotNetCore.AtomicOperations
Assembly
JsonApiDotNetCore.dll

Atomically processes a request that contains a list of operations.

[PublicAPI]
public class OperationsProcessor : IOperationsProcessor
Inheritance
OperationsProcessor
Implements
Inherited Members

Constructors

OperationsProcessor(IOperationProcessorAccessor, IOperationsTransactionFactory, ILocalIdTracker, IResourceGraph, IJsonApiRequest, ITargetedFields, ISparseFieldSetCache)

public OperationsProcessor(IOperationProcessorAccessor operationProcessorAccessor, IOperationsTransactionFactory operationsTransactionFactory, ILocalIdTracker localIdTracker, IResourceGraph resourceGraph, IJsonApiRequest request, ITargetedFields targetedFields, ISparseFieldSetCache sparseFieldSetCache)

Parameters

operationProcessorAccessor IOperationProcessorAccessor
operationsTransactionFactory IOperationsTransactionFactory
localIdTracker ILocalIdTracker
resourceGraph IResourceGraph
request IJsonApiRequest
targetedFields ITargetedFields
sparseFieldSetCache ISparseFieldSetCache

Methods

ProcessAsync(IList<OperationContainer>, CancellationToken)

Processes the list of specified operations.

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

Parameters

operations IList<OperationContainer>
cancellationToken CancellationToken

Returns

Task<IList<OperationContainer>>

ProcessOperationAsync(OperationContainer, CancellationToken)

protected virtual Task<OperationContainer?> ProcessOperationAsync(OperationContainer operation, CancellationToken cancellationToken)

Parameters

operation OperationContainer
cancellationToken CancellationToken

Returns

Task<OperationContainer>

TrackLocalIdsForOperation(OperationContainer)

protected void TrackLocalIdsForOperation(OperationContainer operation)

Parameters

operation OperationContainer