Table of Contents

Class OperationProcessorAccessor

Namespace
JsonApiDotNetCore.AtomicOperations
Assembly
JsonApiDotNetCore.dll

Retrieves an IOperationProcessor instance from the D/I container and invokes a method on it.

[PublicAPI]
public class OperationProcessorAccessor : IOperationProcessorAccessor
Inheritance
OperationProcessorAccessor
Implements
Inherited Members

Constructors

OperationProcessorAccessor(IServiceProvider)

public OperationProcessorAccessor(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

Methods

ProcessAsync(OperationContainer, CancellationToken)

Invokes ProcessAsync(OperationContainer, CancellationToken) on a processor compatible with the operation kind.

public Task<OperationContainer?> ProcessAsync(OperationContainer operation, CancellationToken cancellationToken)

Parameters

operation OperationContainer
cancellationToken CancellationToken

Returns

Task<OperationContainer>

ResolveProcessor(OperationContainer)

protected virtual IOperationProcessor ResolveProcessor(OperationContainer operation)

Parameters

operation OperationContainer

Returns

IOperationProcessor