public StrategyService(IRepositoryAsync <AdGroup> adGroupRepositoryAsync, IRepositoryAsync <Campaign> campaignRepositoryAsync, IBrandscreenContext brandscreenContext, IClock clock, IStrategySettings strategySettings) { _adGroupRepositoryAsync = adGroupRepositoryAsync; _campaignRepositoryAsync = campaignRepositoryAsync; _brandscreenContext = brandscreenContext; _clock = clock; _strategySettings = strategySettings; }
public OrderPipeline(StrategyBase strategy, string name, IEnumerable <ModuleBase> modules, IDictionary <string, object> settingsOverrides) { _strategy = strategy; IStrategySettings _settings = _strategy.Settings; if (settingsOverrides != null) { _settings = new OrderPipelineSettings(strategy._settings, settingsOverrides); } Name = name; foreach (var module in modules) { module.Strategy = strategy; module.Settings = _settings; AddModule(module); } }