public PreviewViewModel(IObservable<NewHtmlMsg> newHtmlMessages, IDispatchServices svc, IPublisher publisher) { _publisher = publisher; newHtmlMessages .Where(msg => _browserCompletedLoad) .ObserveOn(svc) .Subscribe(NextHtml); }
public AppDialogAdapterViewModel(object dialog, IDispatchServices svc) { _svc = svc; Dialog = dialog; Dialog.As<IDeactivate>(d => d.Deactivated += HandleDeactivation); Dialog.As<IHasTitle>(d => Title = d.Title); TrySetTitleColor(Dialog); Close = new RelayCommand(DoClose); }
public HandleExceptionOccurredMessages( IPublisher publisher, IDispatchServices dispatch, IObservable<ExceptionOccurred> exceptionStream1, IObservable<ExceptionMsg> exceptionStream2) { _publisher = publisher; exceptionStream1.Select(ex => ex.Exception) .Merge(exceptionStream2.Select(ex => ex.Exception)) .ObserveOn(dispatch) .Subscribe(HandleNextException); }
public ViewActivationPump(IContainer container, IDispatchServices dispatchServices) { _container = container; _dispatchServices = dispatchServices; }
public AppDialogsViewModel(IDispatchServices svc) { _svc = svc; _appDialogs.CollectionChanged += HandleAppDialogsChange; }
public UiMsgDispatcher(IDispatchServices svc) { _svc = svc; }
public static IObservable <T> ObserveOn <T>(this IObservable <T> observable, IDispatchServices svc) { return(observable.ObserveOn(svc.SyncContext)); }