コード例 #1
0
        public static Tuple <ISubscriber, SubscriptionBuilder> AddEmptyDefaultSubscribtion(this Tuple <ISubscriber, SubscriptionBuilder> subscriber)
        {
            var emptyconsumer = new DoNothingConsumer <object>();

            subscriber.Item2.AddDefaultSubscription(() => emptyconsumer);
            return(subscriber);
        }
コード例 #2
0
        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));
        }