コード例 #1
0
ファイル: XWorkflowHub.cs プロジェクト: jakkaj/Xamling-Core
        public XFlow AddFlow(string flowId, string friendlyName)
        {
            if (GetFlow(flowId) != null)
            {
                throw new InvalidOperationException(string.Format("Flow already created with flowId: {0}", flowId));
            }

            var f = new XFlow(_networkStatus, _entitySerialiser, _localStorage).Setup(flowId, friendlyName);
            
            _flows.Add(f);

            return f;
        }
コード例 #2
0
        public XFlow AddFlow(string flowId, string friendlyName)
        {
            if (GetFlow(flowId) != null)
            {
                throw new InvalidOperationException(string.Format("Flow already created with flowId: {0}", flowId));
            }

            var f = new XFlow(_networkStatus, _entitySerialiser, _localStorage).Setup(flowId, friendlyName);

            _flows.Add(f);

            return(f);
        }
コード例 #3
0
ファイル: XFlow.cs プロジェクト: sk8tz/Xamling-Core
 public XFlow Merge(XFlow other)
 {
     _stages.AddRange(other._stages);
     return(this);
 }
コード例 #4
0
ファイル: XFlow.cs プロジェクト: jakkaj/Xamling-Core
 public XFlow Merge(XFlow other)
 {
     _stages.AddRange(other._stages);
     return this;
 }