public NodeStartedHandler( IHelloHomeDbContext dbCtx, IFindNodeQuery findNodeQuery, ICreateNodeCommand createNodeCommand, ITouchNode touchNode, IRfIdGenerationStrategy rfIdGenerationStrategy, ITimeProvider timeProvider) : base(dbCtx) { _timeProvider = timeProvider; _findNodeQuery = findNodeQuery; _createNodeCommand = createNodeCommand; _touchNode = touchNode; _rfIdGenerationStrategy = rfIdGenerationStrategy; }
public NodeStartedHandler( IUnitOfWork dbCtx, IFindNodeQuery findNodeQuery, ICreateNodeCommand createNodeCommand, ITouchNode touchNode, IRfAddressStrategy rfIdGenerationStrategy, INodeLogger nodeLogger, ITimeProvider timeProvider) : base(dbCtx) { _timeProvider = timeProvider; _findNodeQuery = findNodeQuery; _createNodeCommand = createNodeCommand; _touchNode = touchNode; _rfIdGenerationStrategy = rfIdGenerationStrategy; _nodeLogger = nodeLogger; }
public NodesController( IGetNodesQuery getNodes, ICreateNodeCommand createNode, IGetNodeByIdQuery getNodeById, IUpdateNodeCommand updateNode, IDeleteNodeCommand deleteNode, IGetLogisticCenterIdQuery getLogisticCenterId) { this.getNodes = getNodes ?? throw new ArgumentNullException(nameof(getNodes)); this.createNode = createNode ?? throw new ArgumentNullException(nameof(createNode)); this.getNodeById = getNodeById ?? throw new ArgumentNullException(nameof(getNodeById)); this.updateNode = updateNode ?? throw new ArgumentNullException(nameof(updateNode)); this.deleteNode = deleteNode ?? throw new ArgumentNullException(nameof(deleteNode)); this.getLogisticCenterId = getLogisticCenterId ?? throw new ArgumentNullException(nameof(getLogisticCenterId)); }