コード例 #1
0
 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));
 }
コード例 #2
0
        public LocalIdValidator(ILocalIdTracker localIdTracker, IResourceContextProvider resourceContextProvider)
        {
            ArgumentGuard.NotNull(localIdTracker, nameof(localIdTracker));
            ArgumentGuard.NotNull(resourceContextProvider, nameof(resourceContextProvider));

            _localIdTracker          = localIdTracker;
            _resourceContextProvider = resourceContextProvider;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
 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);
 }
コード例 #5
0
        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);
        }
コード例 #6
0
 public LocalIdValidator(ILocalIdTracker localIdTracker, IResourceContextProvider resourceContextProvider)
 {
     _localIdTracker          = localIdTracker ?? throw new ArgumentNullException(nameof(localIdTracker));
     _resourceContextProvider = resourceContextProvider ?? throw new ArgumentNullException(nameof(resourceContextProvider));
 }