public override Microsoft.XLANGs.Core.PortBase Clone() { PortType_SaveInvokeResult p = new PortType_SaveInvokeResult(this); return p; }
public Microsoft.XLANGs.Core.StopConditions segment1(Microsoft.XLANGs.Core.StopConditions stopOn) { Microsoft.XLANGs.Core.Envelope __msgEnv__ = null; bool __condition__; Microsoft.XLANGs.Core.Segment __seg__ = _segments[1]; Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[1]; __ZFI_CREATE_AR_FOR_WMSClient_root_0 __ctx0__ = (__ZFI_CREATE_AR_FOR_WMSClient_root_0)_stateMgrs[0]; __ZFI_CREATE_AR_FOR_WMSClient_1 __ctx1__ = (__ZFI_CREATE_AR_FOR_WMSClient_1)_stateMgrs[1]; switch (__seg__.Progress) { case 0: __ctx1__.__Count = default(System.Int32); __ctx1__.__CountStr = default(System.String); __ctx1__.__Increase = default(System.Int32); __ctx1__.__batchid = default(System.String); __ctx1__.__sapbkid = default(System.String); __ctx1__.__sapmsg = default(System.String); __ctx__.PrologueCompleted = true; if ( !PostProgressInc( __seg__, __ctx__, 1 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 1; case 1: if ( !PreProgressInc( __seg__, __ctx__, 2 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[0],__eventData[0],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 2; case 2: if ( !PreProgressInc( __seg__, __ctx__, 3 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[1],__eventData[1],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 3; case 3: if (!ReceiveWMSARReport.GetMessageId(__ctx0__.__subWrapper0.getSubscription(this), __seg__, __ctx1__, out __msgEnv__)) return Microsoft.XLANGs.Core.StopConditions.Blocked; if (__ctx1__.__ARReport_Message != null) __ctx1__.UnrefMessage(__ctx1__.__ARReport_Message); __ctx1__.__ARReport_Message = new __messagetype_Kaifa_B2B_Schemas_Wms_ARReport("ARReport_Message", __ctx1__); __ctx1__.RefMessage(__ctx1__.__ARReport_Message); ReceiveWMSARReport.ReceiveMessage(0, __msgEnv__, __ctx1__.__ARReport_Message, null, (Microsoft.XLANGs.Core.Context)_stateMgrs[1], __seg__); if (ReceiveWMSARReport != null) { ReceiveWMSARReport.Close(__ctx1__, __seg__); ReceiveWMSARReport = null; } if ( !PostProgressInc( __seg__, __ctx__, 4 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 4; case 4: if ( !PreProgressInc( __seg__, __ctx__, 5 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; { Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Receive); __edata.Messages.Add(__ctx1__.__ARReport_Message); __edata.PortName = @"ReceiveWMSARReport"; Tracker.FireEvent(__eventLocations[2],__edata,_stateMgrs[1].TrackDataStream ); } if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 5; case 5: __ctx1__.__CountStr = ""; if ( !PostProgressInc( __seg__, __ctx__, 6 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 6; case 6: __ctx1__.__batchid = ""; if ( !PostProgressInc( __seg__, __ctx__, 7 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 7; case 7: __ctx1__.__sapbkid = ""; if ( !PostProgressInc( __seg__, __ctx__, 8 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 8; case 8: __ctx1__.__sapmsg = ""; if ( !PostProgressInc( __seg__, __ctx__, 9 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 9; case 9: if ( !PreProgressInc( __seg__, __ctx__, 10 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[4],__eventData[2],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 10; case 10: __ctx1__.__Count = (System.Int32)Microsoft.XLANGs.Core.Part.XPathLoad(__ctx1__.__ARReport_Message.part, "count(/*[local-name()='ARReport' and namespace-uri()='http://Kaifa.B2B.Schemas.WMSAR']/*[local-name()='CustARReport' and namespace-uri()='http://Kaifa.B2B.Schemas.WMSAR'])", typeof(System.Int32)); if ( !PostProgressInc( __seg__, __ctx__, 11 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 11; case 11: if ( !PreProgressInc( __seg__, __ctx__, 12 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[5],__eventData[3],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 12; case 12: __ctx1__.__CountStr = __ctx1__.__Count.ToString(); if ( !PostProgressInc( __seg__, __ctx__, 13 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 13; case 13: __ctx1__.__Increase = 1; if ( !PostProgressInc( __seg__, __ctx__, 14 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 14; case 14: if ( !PreProgressInc( __seg__, __ctx__, 15 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[6],__eventData[4],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 15; case 15: __condition__ = __ctx1__.__Increase <= __ctx1__.__Count; if (!__condition__) { if ( !PostProgressInc( __seg__, __ctx__, 42 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 42; } if ( !PostProgressInc( __seg__, __ctx__, 16 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 16; case 16: if ( !PreProgressInc( __seg__, __ctx__, 17 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[6],__eventData[5],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 17; case 17: if ( !PreProgressInc( __seg__, __ctx__, 18 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[7],__eventData[6],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 18; case 18: { __messagetype_Kaifa_B2B_Schemas_Wms_CustARReport __CustARReport_Message = new __messagetype_Kaifa_B2B_Schemas_Wms_CustARReport("CustARReport_Message", __ctx1__); ZfiCreateArForWms __ARRequest = new ZfiCreateArForWms("ARRequest", __ctx1__); __ctx1__.__CountStr = __ctx1__.__Increase.ToString(); __CustARReport_Message.part.XPathAssign(__ctx1__.__ARReport_Message.part, "/*[local-name()='ARReport' and namespace-uri()='http://Kaifa.B2B.Schemas.WMSAR']/*[local-name()='CustARReport' and namespace-uri()='http://Kaifa.B2B.Schemas.WMSAR'][" + __ctx1__.__CountStr + "]"); ApplyTransform(typeof(Kaifa.B2B.SAP.AR.Map_To_SAPAR), new object[] {__ARRequest.parameters}, new object[] {__CustARReport_Message.part}); if (__ctx1__.__CustARReport_Message != null) __ctx1__.UnrefMessage(__ctx1__.__CustARReport_Message); __ctx1__.__CustARReport_Message = __CustARReport_Message; __ctx1__.RefMessage(__ctx1__.__CustARReport_Message); if (__ctx1__.__ARRequest != null) __ctx1__.UnrefMessage(__ctx1__.__ARRequest); __ctx1__.__ARRequest = __ARRequest; __ctx1__.RefMessage(__ctx1__.__ARRequest); } __ctx1__.__CustARReport_Message.ConstructionCompleteEvent(true); __ctx1__.__ARRequest.ConstructionCompleteEvent(true); if ( !PostProgressInc( __seg__, __ctx__, 19 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 19; case 19: if ( !PreProgressInc( __seg__, __ctx__, 20 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; { Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Construct); __edata.Messages.Add(__ctx1__.__CustARReport_Message); __edata.Messages.Add(__ctx1__.__ARRequest); Tracker.FireEvent(__eventLocations[8],__edata,_stateMgrs[1].TrackDataStream ); } if (__ctx1__ != null && __ctx1__.__CustARReport_Message != null) { __ctx1__.UnrefMessage(__ctx1__.__CustARReport_Message); __ctx1__.__CustARReport_Message = null; } if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 20; case 20: if ( !PreProgressInc( __seg__, __ctx__, 21 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[9],__eventData[7],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 21; case 21: if (!__ctx1__.PrepareToPendingCommit(__seg__)) return Microsoft.XLANGs.Core.StopConditions.Blocked; if ( !PostProgressInc( __seg__, __ctx__, 22 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 22; case 22: if ( !PreProgressInc( __seg__, __ctx__, 23 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; InvokeSAPWebService.SendMessage(0, __ctx1__.__ARRequest, null, null, out __ctx0__.__subWrapper1, __ctx1__, __seg__ ); if ((stopOn & Microsoft.XLANGs.Core.StopConditions.OutgoingRqst) != 0) return Microsoft.XLANGs.Core.StopConditions.OutgoingRqst; goto case 23; case 23: if ( !PreProgressInc( __seg__, __ctx__, 24 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; { Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Send); __edata.Messages.Add(__ctx1__.__ARRequest); __edata.PortName = @"InvokeSAPWebService"; Tracker.FireEvent(__eventLocations[10],__edata,_stateMgrs[1].TrackDataStream ); } if (__ctx1__ != null && __ctx1__.__ARRequest != null) { __ctx1__.UnrefMessage(__ctx1__.__ARRequest); __ctx1__.__ARRequest = null; } if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 24; case 24: if ( !PreProgressInc( __seg__, __ctx__, 25 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[11],__eventData[1],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 25; case 25: if (!InvokeSAPWebService.GetMessageId(__ctx0__.__subWrapper1.getSubscription(this), __seg__, __ctx1__, out __msgEnv__, _locations[0])) return Microsoft.XLANGs.Core.StopConditions.Blocked; if (__ctx0__ != null && __ctx0__.__subWrapper1 != null) { __ctx0__.__subWrapper1.Destroy(this, __ctx0__); __ctx0__.__subWrapper1 = null; } if (__ctx1__.__ARResponse != null) __ctx1__.UnrefMessage(__ctx1__.__ARResponse); __ctx1__.__ARResponse = new ZfiCreateArForWmsResponse("ARResponse", __ctx1__); __ctx1__.RefMessage(__ctx1__.__ARResponse); InvokeSAPWebService.ReceiveMessage(0, __msgEnv__, __ctx1__.__ARResponse, null, (Microsoft.XLANGs.Core.Context)_stateMgrs[1], __seg__); if ( !PostProgressInc( __seg__, __ctx__, 26 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 26; case 26: if ( !PreProgressInc( __seg__, __ctx__, 27 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; { Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Receive); __edata.Messages.Add(__ctx1__.__ARResponse); __edata.PortName = @"InvokeSAPWebService"; Tracker.FireEvent(__eventLocations[12],__edata,_stateMgrs[1].TrackDataStream ); } if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 27; case 27: if ( !PreProgressInc( __seg__, __ctx__, 28 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[13],__eventData[2],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 28; case 28: __ctx1__.__sapbkid = System.Convert.ToString(Microsoft.XLANGs.Core.Part.XPathLoad(__ctx1__.__ARResponse.parameters, "string(/*[local-name()='ZfiCreateArForWmsResponse' and namespace-uri()='urn:sap-com:document:sap:soap:functions:mc-style']/*[local-name()='DocumentNumber' and namespace-uri()=''])", typeof(System.Object))); if ( !PostProgressInc( __seg__, __ctx__, 29 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 29; case 29: if ( !PreProgressInc( __seg__, __ctx__, 30 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[14],__eventData[3],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 30; case 30: __ctx1__.__batchid = System.Convert.ToString(Microsoft.XLANGs.Core.Part.XPathLoad(__ctx1__.__ARResponse.parameters, "string(/*[local-name()='ZfiCreateArForWmsResponse' and namespace-uri()='urn:sap-com:document:sap:soap:functions:mc-style']/*[local-name()='WmsBatchidOut' and namespace-uri()=''])", typeof(System.Object))); if ( !PostProgressInc( __seg__, __ctx__, 31 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 31; case 31: __ctx1__.__sapmsg = System.Convert.ToString(Microsoft.XLANGs.Core.Part.XPathLoad(__ctx1__.__ARResponse.parameters, "string(/*[local-name()='ZfiCreateArForWmsResponse' and namespace-uri()='urn:sap-com:document:sap:soap:functions:mc-style']/*[local-name()='MsgTab' and namespace-uri()='']/*[local-name()='item' and namespace-uri()='']/*[local-name()='Message' and namespace-uri()=''])", typeof(System.Object))); if ( !PostProgressInc( __seg__, __ctx__, 32 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 32; case 32: Kaifa.B2B.Utility.SAPARReturnHelper.Update(__ctx1__.__batchid, __ctx1__.__sapbkid, __ctx1__.__sapmsg); if ( !PostProgressInc( __seg__, __ctx__, 33 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 33; case 33: if ( !PreProgressInc( __seg__, __ctx__, 34 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[15],__eventData[7],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 34; case 34: if (!__ctx1__.PrepareToPendingCommit(__seg__)) return Microsoft.XLANGs.Core.StopConditions.Blocked; if ( !PostProgressInc( __seg__, __ctx__, 35 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 35; case 35: if ( !PreProgressInc( __seg__, __ctx__, 36 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; SaveInvokeResult.SendMessage(0, __ctx1__.__ARResponse, null, null, __ctx1__, __seg__ , Microsoft.XLANGs.Core.ActivityFlags.None ); if ((stopOn & Microsoft.XLANGs.Core.StopConditions.OutgoingRqst) != 0) return Microsoft.XLANGs.Core.StopConditions.OutgoingRqst; goto case 36; case 36: if ( !PreProgressInc( __seg__, __ctx__, 37 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; { Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Send); __edata.Messages.Add(__ctx1__.__ARResponse); __edata.PortName = @"SaveInvokeResult"; Tracker.FireEvent(__eventLocations[16],__edata,_stateMgrs[1].TrackDataStream ); } if (__ctx1__ != null && __ctx1__.__ARResponse != null) { __ctx1__.UnrefMessage(__ctx1__.__ARResponse); __ctx1__.__ARResponse = null; } if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 37; case 37: if ( !PreProgressInc( __seg__, __ctx__, 38 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[17],__eventData[2],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 38; case 38: __ctx1__.__Increase = __ctx1__.__Increase + 1; if ( !PostProgressInc( __seg__, __ctx__, 39 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 39; case 39: if ( !PreProgressInc( __seg__, __ctx__, 40 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[18],__eventData[3],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 40; case 40: if ( !PreProgressInc( __seg__, __ctx__, 41 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[19],__eventData[8],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 41; case 41: if ( !PostProgressInc( __seg__, __ctx__, 15 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 15; case 42: if ( !PreProgressInc( __seg__, __ctx__, 43 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; if (__ctx1__ != null) __ctx1__.__sapmsg = null; if (__ctx1__ != null) __ctx1__.__sapbkid = null; if (__ctx1__ != null) __ctx1__.__batchid = null; if (__ctx1__ != null) __ctx1__.__CountStr = null; if (__ctx1__ != null && __ctx1__.__ARReport_Message != null) { __ctx1__.UnrefMessage(__ctx1__.__ARReport_Message); __ctx1__.__ARReport_Message = null; } if (SaveInvokeResult != null) { SaveInvokeResult.Close(__ctx1__, __seg__); SaveInvokeResult = null; } if (InvokeSAPWebService != null) { InvokeSAPWebService.Close(__ctx1__, __seg__); InvokeSAPWebService = null; } Tracker.FireEvent(__eventLocations[19],__eventData[9],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 43; case 43: if ( !PreProgressInc( __seg__, __ctx__, 44 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[3],__eventData[10],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 44; case 44: if (!__ctx1__.CleanupAndPrepareToCommit(__seg__)) return Microsoft.XLANGs.Core.StopConditions.Blocked; if ( !PostProgressInc( __seg__, __ctx__, 45 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 45; case 45: if ( !PreProgressInc( __seg__, __ctx__, 46 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; __ctx1__.OnCommit(); goto case 46; case 46: __seg__.SegmentDone(); _segments[0].PredecessorDone(this); break; } return Microsoft.XLANGs.Core.StopConditions.Completed; }
public PortType_SaveInvokeResult(PortType_SaveInvokeResult p) : base(p) { }
public Microsoft.XLANGs.Core.StopConditions segment0(Microsoft.XLANGs.Core.StopConditions stopOn) { Microsoft.XLANGs.Core.Segment __seg__ = _segments[0]; Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[0]; __ZFI_CREATE_AR_FOR_WMSClient_root_0 __ctx0__ = (__ZFI_CREATE_AR_FOR_WMSClient_root_0)_stateMgrs[0]; __ZFI_CREATE_AR_FOR_WMSClient_1 __ctx1__ = (__ZFI_CREATE_AR_FOR_WMSClient_1)_stateMgrs[1]; switch (__seg__.Progress) { case 0: ReceiveWMSARReport = new PortType_ReceiveWMSARReport(0, this); InvokeSAPWebService = new ZFI_CREATE_AR_FOR_WMS(1, this); SaveInvokeResult = new PortType_SaveInvokeResult(2, this); __ctx__.PrologueCompleted = true; __ctx0__.__subWrapper0 = new Microsoft.XLANGs.Core.SubscriptionWrapper(ActivationSubGuids[0], ReceiveWMSARReport, this); if ( !PostProgressInc( __seg__, __ctx__, 1 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; if ((stopOn & Microsoft.XLANGs.Core.StopConditions.Initialized) != 0) return Microsoft.XLANGs.Core.StopConditions.Initialized; goto case 1; case 1: __ctx1__ = new __ZFI_CREATE_AR_FOR_WMSClient_1(this); _stateMgrs[1] = __ctx1__; if ( !PostProgressInc( __seg__, __ctx__, 2 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 2; case 2: __ctx0__.StartContext(__seg__, __ctx1__); if ( !PostProgressInc( __seg__, __ctx__, 3 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; return Microsoft.XLANGs.Core.StopConditions.Blocked; case 3: if (!__ctx0__.CleanupAndPrepareToCommit(__seg__)) return Microsoft.XLANGs.Core.StopConditions.Blocked; if ( !PostProgressInc( __seg__, __ctx__, 4 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 4; case 4: __ctx1__.Finally(); ServiceDone(__seg__, (Microsoft.XLANGs.Core.Context)_stateMgrs[0]); __ctx0__.OnCommit(); break; } return Microsoft.XLANGs.Core.StopConditions.Completed; }