public CreateProcessor(ICreateService <TResource, TId> service, ILocalIdTracker localIdTracker, IResourceContextProvider resourceContextProvider) { _service = service ?? throw new ArgumentNullException(nameof(service)); _localIdTracker = localIdTracker ?? throw new ArgumentNullException(nameof(localIdTracker)); _resourceContextProvider = resourceContextProvider ?? throw new ArgumentNullException(nameof(resourceContextProvider)); }
public LocalIdValidator(ILocalIdTracker localIdTracker, IResourceContextProvider resourceContextProvider) { ArgumentGuard.NotNull(localIdTracker, nameof(localIdTracker)); ArgumentGuard.NotNull(resourceContextProvider, nameof(resourceContextProvider)); _localIdTracker = localIdTracker; _resourceContextProvider = resourceContextProvider; }
public CreateProcessor(ICreateService <TResource, TId> service, ILocalIdTracker localIdTracker, IResourceContextProvider resourceContextProvider) { ArgumentGuard.NotNull(service, nameof(service)); ArgumentGuard.NotNull(localIdTracker, nameof(localIdTracker)); ArgumentGuard.NotNull(resourceContextProvider, nameof(resourceContextProvider)); _service = service; _localIdTracker = localIdTracker; _resourceContextProvider = resourceContextProvider; }
public OperationsProcessor(IOperationProcessorAccessor operationProcessorAccessor, IOperationsTransactionFactory operationsTransactionFactory, ILocalIdTracker localIdTracker, IResourceContextProvider resourceContextProvider, IJsonApiRequest request, ITargetedFields targetedFields) { _operationProcessorAccessor = operationProcessorAccessor ?? throw new ArgumentNullException(nameof(operationProcessorAccessor)); _operationsTransactionFactory = operationsTransactionFactory ?? throw new ArgumentNullException(nameof(operationsTransactionFactory)); _localIdTracker = localIdTracker ?? throw new ArgumentNullException(nameof(localIdTracker)); _resourceContextProvider = resourceContextProvider ?? throw new ArgumentNullException(nameof(resourceContextProvider)); _request = request ?? throw new ArgumentNullException(nameof(request)); _targetedFields = targetedFields ?? throw new ArgumentNullException(nameof(targetedFields)); _localIdValidator = new LocalIdValidator(_localIdTracker, _resourceContextProvider); }
public OperationsProcessor(IOperationProcessorAccessor operationProcessorAccessor, IOperationsTransactionFactory operationsTransactionFactory, ILocalIdTracker localIdTracker, IResourceContextProvider resourceContextProvider, IJsonApiRequest request, ITargetedFields targetedFields) { ArgumentGuard.NotNull(operationProcessorAccessor, nameof(operationProcessorAccessor)); ArgumentGuard.NotNull(operationsTransactionFactory, nameof(operationsTransactionFactory)); ArgumentGuard.NotNull(localIdTracker, nameof(localIdTracker)); ArgumentGuard.NotNull(resourceContextProvider, nameof(resourceContextProvider)); ArgumentGuard.NotNull(request, nameof(request)); ArgumentGuard.NotNull(targetedFields, nameof(targetedFields)); _operationProcessorAccessor = operationProcessorAccessor; _operationsTransactionFactory = operationsTransactionFactory; _localIdTracker = localIdTracker; _resourceContextProvider = resourceContextProvider; _request = request; _targetedFields = targetedFields; _localIdValidator = new LocalIdValidator(_localIdTracker, _resourceContextProvider); }
public LocalIdValidator(ILocalIdTracker localIdTracker, IResourceContextProvider resourceContextProvider) { _localIdTracker = localIdTracker ?? throw new ArgumentNullException(nameof(localIdTracker)); _resourceContextProvider = resourceContextProvider ?? throw new ArgumentNullException(nameof(resourceContextProvider)); }