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
OperationContainercancellationToken
CancellationToken
Returns
ResolveProcessor(OperationContainer)
protected virtual IOperationProcessor ResolveProcessor(OperationContainer operation)
Parameters
operation
OperationContainer