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 }); }); }
public static void WhenActivated(this ISupportsActivation source, Action action) { source.WhenActivated(compositeDisposable => WhenActivatedDummy(compositeDisposable, action)); }