问题
I am using the FileShareDataBus in NServiceBus 3. Is there any support for cleaning up databus files?
If not, what would be the best practice to achieve this (like how do you ensure that the file is not part of a message that is in the error queue)?
回答1:
Given that it's impossible to know how long a message stay in the error queue I usually purge after a resonably long time (Max(SLA) + x days)
来源:https://stackoverflow.com/questions/12642468/cleanup-files-when-using-nservicebus-filesharedatabus