Пример #1
0
            public IDisposable Run(Case <TValue, TResult> parent)
            {
                var result = default(IObservable <TResult>);

                try
                {
                    result = parent.Eval();
                }
                catch (Exception exception)
                {
                    ForwardOnError(exception);
                    return(Disposable.Empty);
                }

                return(result.SubscribeSafe(this));
            }
Пример #2
0
            public IDisposable Run()
            {
                var result = default(IObservable <TResult>);

                try
                {
                    result = _parent.Eval();
                }
                catch (Exception exception)
                {
                    base._observer.OnError(exception);
                    base.Dispose();
                    return(Disposable.Empty);
                }

                return(result.SubscribeSafe(this));
            }
Пример #3
0
            public void Run(Case <TValue, TResult> parent)
            {
                var result = default(IObservable <TResult>);

                try
                {
                    result = parent.Eval();
                }
                catch (Exception exception)
                {
                    ForwardOnError(exception);

                    return;
                }

                Run(result);
            }
Пример #4
0
            public void Run(Case <TValue, TResult> parent)
            {
                var result = default(IObservable <TResult>);

                try
                {
                    result = parent.Eval();
                }
                catch (Exception exception)
                {
                    ForwardOnError(exception);

                    return;
                }

                SetUpstream(result.SubscribeSafe(this));
            }