public void Wait(TransactionIdentity transactionIdentity, TimeSpan timeout) { var stopwatch = Stopwatch.StartNew(); while (_projectionDispatcher.Processed(transactionIdentity) == false) { if (stopwatch.Elapsed > timeout) { throw new TimeoutException(ProjectionTimeoutMessage); } Thread.Sleep(10); } }
public bool Processed(TransactionIdentity transactionIdentity) { return(_projectionDispatcher.Processed(transactionIdentity)); }