我正试图了解如何利用追溯性延期来实施以下设想。 我一直在研究的其他解决办法包括管理一系列时间,......我想尽可能避免。
Scenario
A stream of "ActionRequests" occurring. The ActionRequest s streaming in are from different object sources. I am only interested in picking off the most recent ActionRequest once requests have stopped coming in from a specific source for a period of x seconds
So breaking that down.
public class ActionRequest
{
public ActionRequest(Guid quoteId, DateTime now)
{
QuoteId = quoteId;
RequestTimestamp = now;
}
public Guid QuoteId { get; set; }
public DateTime RequestTimestamp { get; set; }
}
在这方面的任何想法都会受到赞赏。