public InventoryService( IInventoryReadRepository inventoryReadRepository, IInventoryEventRepository inventoryEventRepository, IInventoryCommandHandler inventoryCommandHandler ) { _inventoryReadRepository = inventoryReadRepository; _inventoryEventRepository = inventoryEventRepository; _inventoryCommandHandler = inventoryCommandHandler; }
// ToDo: Add distributed application cache public InventoryRepository(IInventoryReadRepository readRepository, IInventoryWriteRepository writeRepository) { _readRepository = readRepository; _writeRepository = writeRepository; }