Sfoglia il codice sorgente

Fix flush unclaer data bugs.

master
Savorboard 6 anni fa
parent
commit
e993f4be92
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. +4
    -2
      src/DotNetCore.CAP/ICapTransaction.Base.cs

+ 4
- 2
src/DotNetCore.CAP/ICapTransaction.Base.cs Vedi File

@@ -23,13 +23,15 @@ namespace DotNetCore.CAP
{
_bufferList.Add(msg);
}
protected void Flush()
protected virtual void Flush()
{
foreach (var message in _bufferList)
{
_dispatcher.EnqueueToPublish(message);
}

_bufferList.Clear();
}

public abstract void Commit();


Caricamento…
Annulla
Salva