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
IOperationProcessorAccessoroperationsTransactionFactory
IOperationsTransactionFactorylocalIdTracker
ILocalIdTrackerresourceGraph
IResourceGraphrequest
IJsonApiRequesttargetedFields
ITargetedFieldssparseFieldSetCache
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
ProcessOperationAsync(OperationContainer, CancellationToken)
protected virtual Task<OperationContainer?> ProcessOperationAsync(OperationContainer operation, CancellationToken cancellationToken)
Parameters
operation
OperationContainercancellationToken
CancellationToken
Returns
TrackLocalIdsForOperation(OperationContainer)
protected void TrackLocalIdsForOperation(OperationContainer operation)
Parameters
operation
OperationContainer