public WeakSubscribeViewModel(IService service) { Time = service.Time.Select(x => x.ToString() + "(WeakSubscribe)").ToWeakReactiveProperty(mode: ReactivePropertyMode.DistinctUntilChanged); Time.WeakSubscribe(new AnonymousObserver <string>(Console.WriteLine)).AddTo(_disposables); Time.AddTo(_disposables); }
public StrongSubscribeViewModel(IService service) { Time = service.Time.Select(x => x.ToString() + "(StrongSubscribe)").ToReactiveProperty(mode: ReactivePropertyMode.DistinctUntilChanged); Time.Subscribe(Console.WriteLine).AddTo(_disposables); Time.AddTo(_disposables); }