public ColumnExploration(ExplorationConfig config, INestedContainer scope, string column)
 {
     this.scope = scope;
     publisher  = scope.GetInstance <MetricsPublisher>();
     Column     = column;
     Completion = Task.WhenAll(config.Tasks);
 }
Exemple #2
0
        /// <summary>
        /// Configure a column exploration within a given scope.
        /// </summary>
        /// <param name="scope">The scoped container to use for object resolution.</param>
        /// <param name="conn">A DConnection configured for the Api backend.</param>
        /// <param name="ctx">An <see cref="ExplorerContext" /> defining the exploration parameters.</param>
        /// <param name="componentConfiguration">
        /// An action to add and configure the components to use in this exploration.
        /// </param>
        /// <returns>A new ColumnExploration object.</returns>
        public static ColumnExploration ExploreColumn(
            INestedContainer scope,
            DConnection conn,
            ExplorerContext ctx,
            Action <ExplorationConfig> componentConfiguration)
        {
            // Configure a new Exploration
            var config = new ExplorationConfig(scope);

            config.UseConnection(conn);
            config.UseContext(ctx);
            config.Compose(componentConfiguration);
            return(new ColumnExploration(config, scope, ctx.Column));
        }