Exemple #1
0
        private static IPluginConfig GetVariantConfingPluginConfig(IPluginConfig rawConfig, ISet <string> flights)
        {
            var config = new VariantConfigPluginConfig(rawConfig);

            config.Initialize(flights.Select(f => new VariantConstraint("flt", f)));
            return(config);
        }
 public void Initialize(ExecutionContext executionContext = null, IList <VariantConstraint> variants = null)
 {
     _executionContext = executionContext ?? new ExecutionContext();
     _executionContext.SetPluginServices(this);
     _variantConstraints = variants;
     _pluginConfig.Initialize(variants);
 }