Table of Contents

Class AddToRelationshipProcessor<TResource, TId>

Namespace
JsonApiDotNetCore.AtomicOperations.Processors
Assembly
JsonApiDotNetCore.dll

Processes a single operation to add resources to a to-many relationship.

[PublicAPI]
public class AddToRelationshipProcessor<TResource, TId> : IAddToRelationshipProcessor<TResource, TId>, IOperationProcessor where TResource : class, IIdentifiable<TId>

Type Parameters

TResource

The resource type.

TId

The resource identifier type.

Inheritance
AddToRelationshipProcessor<TResource, TId>
Implements
Inherited Members

Constructors

AddToRelationshipProcessor(IAddToRelationshipService<TResource, TId>)

public AddToRelationshipProcessor(IAddToRelationshipService<TResource, TId> service)

Parameters

service IAddToRelationshipService<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>