Table of Contents

Class UpdateProcessor<TResource, TId>

Namespace
JsonApiDotNetCore.AtomicOperations.Processors
Assembly
JsonApiDotNetCore.dll

Processes a single operation to update the attributes and/or relationships of an existing resource. Only the values of sent attributes are replaced. And only the values of sent relationships are replaced.

[PublicAPI]
public class UpdateProcessor<TResource, TId> : IUpdateProcessor<TResource, TId>, IOperationProcessor where TResource : class, IIdentifiable<TId>

Type Parameters

TResource

The resource type.

TId

The resource identifier type.

Inheritance
UpdateProcessor<TResource, TId>
Implements
IUpdateProcessor<TResource, TId>
Inherited Members

Constructors

UpdateProcessor(IUpdateService<TResource, TId>)

public UpdateProcessor(IUpdateService<TResource, TId> service)

Parameters

service IUpdateService<TResource, TId>

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>