public FlowRunner(FlowBuilder _flows, IDistributedCache distributedCache) { _distributedCache = distributedCache; flows = _flows; InitializeData(); Build(); }
public FlowRunner(string _flowId, FlowBuilder _flows, IDistributedCache distributedCache) { _distributedCache = distributedCache; flows = _flows; flowId = _flowId; var dataFromStorage = Common.ByteArrayToObject <Dictionary <string, object> >(_distributedCache.Get(flowId)); StandByFlowUrl = dataFromStorage["StandByFlowUrl"]?.ToString(); currentFlowIndex = (int)dataFromStorage["CurrentFlowIndex"]; ExtraData = dataFromStorage["ExtraData"] as DataStorage; }