public Flow(string flowId, FlowConfiguration configuration, DateTime starttime) { FlowId = flowId; Configuration = configuration; Starttime = starttime; _steps = Configuration.StepNames.Select(stepName => new FlowStep(FlowId, stepName)).ToArray(); }
public void Seed(string flowId, FlowConfiguration configuration) { var timestamp = DateTime.Now; foreach (var bucket in _buckets) { try { bucket.Handle(new FlowerSeedMessage(flowId, configuration, timestamp)); } catch (Exception e) { _selfLogAction?.Invoke(e.ToString()); } } }
public FlowerSeedMessage(string flowId, FlowConfiguration configuration, DateTime timestamp) { FlowId = flowId; Configuration = configuration; Timestamp = timestamp; }
/// <summary> /// Initializes a new flow /// </summary> /// <param name="flowId"></param> /// <param name="configuration"></param> /// <param name="timestamp"></param> public void Seed(string flowId, FlowConfiguration configuration, DateTime timestamp) { _manager.Start(new Flow(flowId, configuration, timestamp), timestamp); }