I just ran into some blog posts about the "latch design pattern".
http://www.minddriven.de/index.php/technology/development/design-patterns/latch-design-pattern
For those not yet using the Rx Framework, here is how you would do this;
var latch = new BehaviorSubject<bool>(false);
latch.CombineLatest(someEvent, (isLatched, args) => new {isLatched, args})
.Where(t => !t.isLatched)
.Select(t => t.args)
More soon...
Comments