Class SetRelationshipProcessor<TResource, TId>
- Namespace
- JsonApiDotNetCore.AtomicOperations.Processors
- Assembly
- JsonApiDotNetCore.dll
Processes a single operation to perform a complete replacement of a relationship on an existing resource.
[PublicAPI]
public class SetRelationshipProcessor<TResource, TId> : ISetRelationshipProcessor<TResource, TId>, IOperationProcessor where TResource : class, IIdentifiable<TId>
Type Parameters
TResource
The resource type.
TId
The resource identifier type.
- Inheritance
-
SetRelationshipProcessor<TResource, TId>
- Implements
-
ISetRelationshipProcessor<TResource, TId>
- Inherited Members
Constructors
SetRelationshipProcessor(ISetRelationshipService<TResource, TId>)
public SetRelationshipProcessor(ISetRelationshipService<TResource, TId> service)
Parameters
service
ISetRelationshipService<TResource, TId>
Methods
ProcessAsync(OperationContainer, CancellationToken)
Processes the specified operation.
public virtual Task<OperationContainer?> ProcessAsync(OperationContainer operation, CancellationToken cancellationToken)
Parameters
operation
OperationContainercancellationToken
CancellationToken