Ejemplo n.º 1
0
 protected override void OnConfigureStrategy(IConfigurableBindingStrategy strategy)
 {
     strategy
     //.OnElement(te => OnElement(te))
     .OnElement((e, _) => OnElement(e))
     .OnCompleted(_ => OnCompleted())
     .OnError((ex, _) => OnError(ex));
 }
Ejemplo n.º 2
0
        public void SetInput(IObservable <IElement> input)
        {
            if (input == null)
            {
                throw new ArgumentNullException("input");
            }
            IConfigurableBindingStrategy strategy = OnCreateStrategy();

            OnConfigureStrategy(strategy);
            _strategy = strategy;
            _output   = OnCreateOutput(input);
        }
Ejemplo n.º 3
0
        protected override void OnConfigureStrategy(IConfigurableBindingStrategy strategy)
        {
            ActionEvents events = OnGetExpectedEvents();

            if ((events & ActionEvents.Element) > 0)
            {
                strategy.OnElement(OnElement);
            }
            if ((events & ActionEvents.Completed) > 0)
            {
                strategy.OnCompleted(OnCompleted);
            }
            if ((events & ActionEvents.Error) > 0)
            {
                strategy.OnError(OnError);
            }
            if ((events & ActionEvents.Finally) > 0)
            {
                strategy.OnFinally(OnFinally);
            }
        }
Ejemplo n.º 4
0
 protected override void OnConfigureStrategy(IConfigurableBindingStrategy strategy)
 {
 }
Ejemplo n.º 5
0
 protected abstract void OnConfigureStrategy(IConfigurableBindingStrategy strategy);