示例#1
0
        public FlowRunner(FlowBuilder _flows, IDistributedCache distributedCache)
        {
            _distributedCache = distributedCache;
            flows             = _flows;

            InitializeData();
            Build();
        }
示例#2
0
        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;
        }