“Exclusive” and “Default” Subscription Modes in Rx
问题 I have an observable sequence of event objects and a number of observers handling specific types of events. I need to accomplish the following scenarios: Some event types need to be handled by the first observer matching a condition (e.g. observable.SubscribeExclusively(x=>{}) and become "unobservable" to the others. If there are no subscriptions, set some default handler (e.g. observable.SubscribeIfNoSubscriptions(x=>{})) so that no items get lost (this handler may for example save the item