Example #1
0
        public static IDisposable WhenActivated(
            this IActivatable @this,
            Action <CompositeDisposable> disposables,
            IViewFor view = null)
        {
            @this.AssertNotNull(nameof(@this));

            return(@this
                   .WhenActivated(
                       () =>
            {
                var d = new CompositeDisposable();
                disposables(d);
                return new[] { d };
            },
                       view));
        }