public SystemProcessOperationContext(
            ISystemProcessContext systemProcessContext,
            ISystemProcessOperationRepository systemProcessOperationRepository,
            ISystemProcessOperationRunRuleContextFactory runRuleContextFactory,
            ISystemProcessOperationDistributeRuleContextFactory distributeRuleContextFactory,
            ISystemProcessOperationFileUploadContextFactory uploadFileFactory,
            ISystemProcessOperationDataRequestContextFactory dataRequestFactory,
            IOperationLogging operationLogging)
        {
            this._systemProcessContext =
                systemProcessContext ?? throw new ArgumentNullException(nameof(systemProcessContext));

            this._systemProcessOperationRepository = systemProcessOperationRepository
                                                     ?? throw new ArgumentNullException(
                                                               nameof(systemProcessOperationRepository));

            this._runRuleContextFactory =
                runRuleContextFactory ?? throw new ArgumentNullException(nameof(runRuleContextFactory));

            this._distributeRuleContextFactory = distributeRuleContextFactory
                                                 ?? throw new ArgumentNullException(
                                                           nameof(distributeRuleContextFactory));

            this._uploadFileFactory = uploadFileFactory ?? throw new ArgumentNullException(nameof(uploadFileFactory));

            this._dataRequestFactory =
                dataRequestFactory ?? throw new ArgumentNullException(nameof(dataRequestFactory));

            this._operationLogging = operationLogging ?? throw new ArgumentNullException(nameof(operationLogging));
        }
Beispiel #2
0
 public SystemProcessOperationContextFactory(
     ISystemProcessOperationRepository operationContext,
     ISystemProcessOperationRunRuleContextFactory ruleRunRepository,
     ISystemProcessOperationDistributeRuleContextFactory distributeRuleFactory,
     IOperationLogging operationLogging,
     ISystemProcessOperationFileUploadContextFactory fileUploadFactory,
     ISystemProcessOperationDataRequestContextFactory dataRequestFactory)
 {
     this._operationRepository   = operationContext ?? throw new ArgumentNullException(nameof(operationContext));
     this._ruleRunFactory        = ruleRunRepository ?? throw new ArgumentNullException(nameof(ruleRunRepository));
     this._distributeRuleFactory =
         distributeRuleFactory ?? throw new ArgumentNullException(nameof(distributeRuleFactory));
     this._operationLogging   = operationLogging ?? throw new ArgumentNullException(nameof(operationLogging));
     this._fileUploadFactory  = fileUploadFactory ?? throw new ArgumentNullException(nameof(fileUploadFactory));
     this._dataRequestFactory =
         dataRequestFactory ?? throw new ArgumentNullException(nameof(dataRequestFactory));
 }