protected BaseJsonApiOperationsController(IJsonApiOptions options, ILoggerFactory loggerFactory,
                                                  IOperationsProcessor processor, IJsonApiRequest request, ITargetedFields targetedFields)
        {
            ArgumentGuard.NotNull(options, nameof(options));
            ArgumentGuard.NotNull(loggerFactory, nameof(loggerFactory));
            ArgumentGuard.NotNull(processor, nameof(processor));
            ArgumentGuard.NotNull(request, nameof(request));
            ArgumentGuard.NotNull(targetedFields, nameof(targetedFields));

            _options        = options;
            _processor      = processor;
            _request        = request;
            _targetedFields = targetedFields;
            _traceWriter    = new TraceLogWriter <BaseJsonApiOperationsController>(loggerFactory);
        }
 public JSONAPIHub(IOperationsProcessor operationsProcessor, AppDbContext db)
 {
     this._operationsProcessor = operationsProcessor;
     this._db = db;
 }
Example #3
0
 public OperationsController(IOperationsProcessor processor)
     : base(processor)
 {
 }
 public CreateMusicTrackOperationsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IOperationsProcessor processor,
                                             IJsonApiRequest request, ITargetedFields targetedFields)
     : base(options, loggerFactory, processor, request, targetedFields)
 {
 }
Example #5
0
 /// <param name="operationsProcessor">
 /// The processor to handle bulk operations.
 /// </param>
 public JsonApiOperationsController(IOperationsProcessor operationsProcessor)
 {
     _operationsProcessor = operationsProcessor;
 }
Example #6
0
 public OperationsController(IJsonApiOptions options, IResourceGraph resourceGraph, ILoggerFactory loggerFactory, IOperationsProcessor processor,
                             IJsonApiRequest request, ITargetedFields targetedFields)
     : base(options, resourceGraph, loggerFactory, processor, request, targetedFields)
 {
 }