protected override void OnConfigureStrategy(IConfigurableBindingStrategy strategy) { strategy //.OnElement(te => OnElement(te)) .OnElement((e, _) => OnElement(e)) .OnCompleted(_ => OnCompleted()) .OnError((ex, _) => OnError(ex)); }
public void SetInput(IObservable <IElement> input) { if (input == null) { throw new ArgumentNullException("input"); } IConfigurableBindingStrategy strategy = OnCreateStrategy(); OnConfigureStrategy(strategy); _strategy = strategy; _output = OnCreateOutput(input); }
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); } }
protected override void OnConfigureStrategy(IConfigurableBindingStrategy strategy) { }
protected abstract void OnConfigureStrategy(IConfigurableBindingStrategy strategy);