public async Task Handle(StockQuotation arrivedQuotation, CancellationToken cancellationToken) { if (arrivedQuotation._ownerId == _id || arrivedQuotation._isExecuted) { return; } var myOffer = _brokerRepository.FindOffer(arrivedQuotation); if (myOffer is null) { return; } arrivedQuotation._isExecuted = true; Notifications.NotifyTransaction(myOffer, arrivedQuotation); _brokerRepository.Remove(myOffer); }