Exemplo n.º 1
0
 public InventoryService(
     IInventoryReadRepository inventoryReadRepository,
     IInventoryEventRepository inventoryEventRepository,
     IInventoryCommandHandler inventoryCommandHandler
     )
 {
     _inventoryReadRepository  = inventoryReadRepository;
     _inventoryEventRepository = inventoryEventRepository;
     _inventoryCommandHandler  = inventoryCommandHandler;
 }
Exemplo n.º 2
0
        // ToDo: Add distributed application cache

        public InventoryRepository(IInventoryReadRepository readRepository, IInventoryWriteRepository writeRepository)
        {
            _readRepository  = readRepository;
            _writeRepository = writeRepository;
        }