public static Tuple <ISubscriber, SubscriptionBuilder> AddEmptyDefaultSubscribtion(this Tuple <ISubscriber, SubscriptionBuilder> subscriber) { var emptyconsumer = new DoNothingConsumer <object>(); subscriber.Item2.AddDefaultSubscription(() => emptyconsumer); return(subscriber); }
public static Tuple <ISubscriber, SubscriptionBuilder> AddEmptyDefaultSubscribtion(this ISubscriber subscriber) { var builder = SubscriptionBuilder.Create(); var emptyconsumer = new DoNothingConsumer <object>(); builder.AddDefaultSubscription(() => emptyconsumer); return(new Tuple <ISubscriber, SubscriptionBuilder>(subscriber, builder)); }