Beispiel #1
0
        public static void WhenActivated(
            this ISupportsActivation @this,
            Action <CompositeDisposable> disposables)
        {
            @this.AssertNotNull(nameof(@this));

            @this
            .WhenActivated(
                () =>
            {
                var d = new CompositeDisposable();
                disposables(d);
                return(new[] { d });
            });
        }
        public static void WhenActivated(
            this ISupportsActivation @this,
            Action <CompositeDisposable> disposables)
        {
            if (@this == null)
            {
                throw new ArgumentNullException("this");
            }

            @this.WhenActivated(
                () =>
            {
                var d = new CompositeDisposable();
                disposables(d);
                return(new[] { d });
            });
        }
Beispiel #3
0
 public static void WhenActivated(this ISupportsActivation source, Action action)
 {
     source.WhenActivated(compositeDisposable => WhenActivatedDummy(compositeDisposable, action));
 }