public Microsoft.XLANGs.Core.StopConditions segment5(Microsoft.XLANGs.Core.StopConditions stopOn) { bool __condition__; Microsoft.XLANGs.Core.Segment __seg__ = _segments[5]; Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[2]; __CreateGuard_1 __ctx1__ = (__CreateGuard_1)_stateMgrs[1]; ____scope35_2 __ctx2__ = (____scope35_2)_stateMgrs[2]; switch (__seg__.Progress) { case 0: OnBeginCatchHandler(2); 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[24],__eventData[5],_stateMgrs[2].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[25],__eventData[6],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 3; case 3: __ctx1__.__NodeId = (System.Int64)__ctx1__.__CreateGuardNodeMsg.part.GetDistinguishedField("NodeId"); 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; Tracker.FireEvent(__eventLocations[26],__eventData[7],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 5; case 5: __ctx1__.__StatusId = System.Convert.ToInt32(MedegaImport.MedegaImportTypes.MedegaNodeStatus.InError); if ( !PostProgressInc( __seg__, __ctx__, 6 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 6; case 6: __ctx1__.__ReasonOfFailure = __ctx2__.__exc_0.Message; if ( !PostProgressInc( __seg__, __ctx__, 7 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 7; case 7: __ctx1__.__ExceptionDescription = __ctx2__.__exc_0.Message; if ( !PostProgressInc( __seg__, __ctx__, 8 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 8; case 8: __ctx1__.__InnerExceptionDescription = ""; 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[27],__eventData[11],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 10; case 10: __condition__ = __ctx2__.__exc_0.InnerException != null; if (!__condition__) { if ( !PostProgressInc( __seg__, __ctx__, 12 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 12; } if ( !PostProgressInc( __seg__, __ctx__, 11 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 11; case 11: __ctx1__.__InnerExceptionDescription = __ctx2__.__exc_0.InnerException.Message; if ( !PostProgressInc( __seg__, __ctx__, 12 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 12; case 12: if ( !PreProgressInc( __seg__, __ctx__, 13 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; if (__ctx2__ != null) __ctx2__.__exc_0 = null; Tracker.FireEvent(__eventLocations[28],__eventData[12],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 13; case 13: if ( !PreProgressInc( __seg__, __ctx__, 14 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[29],__eventData[13],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 14; case 14: { Microsoft.XLANGs.Core.Service svc = new MedegaImport.HandleException(4, InstanceId, this); _stateMgrs[4] = svc; __ctx2__.StartCall(__seg__, svc, __eventLocations[29],new object[] {__ctx1__.__returnCode, __ctx1__.__Context, __ctx1__.__Context, __ctx1__.__ExceptionDescription, __ctx1__.__InnerExceptionDescription}); } if ( !PostProgressInc( __seg__, __ctx__, 15 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; return Microsoft.XLANGs.Core.StopConditions.Blocked; case 15: if ( !PreProgressInc( __seg__, __ctx__, 16 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; { object[] args = ((Microsoft.XLANGs.Core.Service)_stateMgrs[4]).Args; __ctx1__.__returnCode = (System.Int32)args[0]; } { Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Call); __edata.Messages.Add(__ctx1__.__Context); __edata.Messages.Add(__ctx1__.__Context); Tracker.FireEvent(__eventLocations[30],__edata,_stateMgrs[2].TrackDataStream ); } if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 16; case 16: if ( !PreProgressInc( __seg__, __ctx__, 17 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[31],__eventData[13],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 17; case 17: { Microsoft.XLANGs.Core.Service svc = new MedegaImport.subUpdateNodeStatus(5, InstanceId, this); _stateMgrs[5] = svc; __ctx2__.StartCall(__seg__, svc, __eventLocations[31],new object[] {__ctx1__.__NodeId, __ctx1__.__StatusId, __ctx1__.__ReasonOfFailure}); } if ( !PostProgressInc( __seg__, __ctx__, 18 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; return Microsoft.XLANGs.Core.StopConditions.Blocked; case 18: if ( !PreProgressInc( __seg__, __ctx__, 19 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; { object[] args = ((Microsoft.XLANGs.Core.Service)_stateMgrs[5]).Args; } Tracker.FireEvent(__eventLocations[32],__eventData[14],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 19; case 19: if ( !PreProgressInc( __seg__, __ctx__, 20 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[33],__eventData[9],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 20; case 20: __ctx2__.__exv__ = null; OnEndCatchHandler(2, __seg__); __seg__.SegmentDone(); break; } return Microsoft.XLANGs.Core.StopConditions.Completed; }
public Microsoft.XLANGs.Core.StopConditions segment5(Microsoft.XLANGs.Core.StopConditions stopOn) { Microsoft.XLANGs.Core.Segment __seg__ = _segments[5]; Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[2]; ____scope37_2 __ctx2__ = (____scope37_2)_stateMgrs[2]; __subImportFile_1 __ctx1__ = (__subImportFile_1)_stateMgrs[1]; switch (__seg__.Progress) { case 0: OnBeginCatchHandler(2); 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[30],__eventData[10],_stateMgrs[2].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[31],__eventData[3],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 3; case 3: __ctx1__.__ExceptionDescription = __ctx2__.__ex_0.Message; if (__ctx2__ != null) __ctx2__.__ex_0 = 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; Tracker.FireEvent(__eventLocations[32],__eventData[4],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 5; case 5: __ctx1__.__InnerExceptionDescription = ""; if ( !PostProgressInc( __seg__, __ctx__, 6 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 6; case 6: __ctx1__.__FileStatusID = -99; if ( !PostProgressInc( __seg__, __ctx__, 7 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 7; case 7: if ( !PreProgressInc( __seg__, __ctx__, 8 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[35],__eventData[14],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 8; case 8: { Microsoft.XLANGs.Core.Service svc = new MedegaImport.HandleException(4, InstanceId, this); _stateMgrs[4] = svc; __ctx2__.StartCall(__seg__, svc, __eventLocations[35],new object[] {__ctx1__.__status, __ctx1__.__Context, __ctx1__.__ExceptionMsg, __ctx1__.__ExceptionDescription, __ctx1__.__InnerExceptionDescription}); } if ( !PostProgressInc( __seg__, __ctx__, 9 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; return Microsoft.XLANGs.Core.StopConditions.Blocked; case 9: if ( !PreProgressInc( __seg__, __ctx__, 10 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; { object[] args = ((Microsoft.XLANGs.Core.Service)_stateMgrs[4]).Args; __ctx1__.__status = (System.Int32)args[0]; } { Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Call); __edata.Messages.Add(__ctx1__.__Context); __edata.Messages.Add(__ctx1__.__ExceptionMsg); Tracker.FireEvent(__eventLocations[36],__edata,_stateMgrs[2].TrackDataStream ); } if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 10; case 10: if ( !PreProgressInc( __seg__, __ctx__, 11 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[37],__eventData[12],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 11; case 11: __ctx2__.__exv__ = null; OnEndCatchHandler(2, __seg__); __seg__.SegmentDone(); break; } return Microsoft.XLANGs.Core.StopConditions.Completed; }
public Microsoft.XLANGs.Core.StopConditions segment6(Microsoft.XLANGs.Core.StopConditions stopOn) { bool __condition__; Microsoft.XLANGs.Core.Segment __seg__ = _segments[6]; Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[2]; __subImportGuardRecord_1 __ctx1__ = (__subImportGuardRecord_1)_stateMgrs[1]; __Transaction_2_2 __ctx2__ = (__Transaction_2_2)_stateMgrs[2]; switch (__seg__.Progress) { case 0: OnBeginCatchHandler(2); 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[33],__eventData[6],_stateMgrs[2].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[34],__eventData[2],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 3; case 3: __ctx2__.__ExceptionDescription = __ctx2__.__ex_0.Message; 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; Tracker.FireEvent(__eventLocations[35],__eventData[3],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 5; case 5: __ctx2__.__TechnicalErrorOccured = true; if ( !PostProgressInc( __seg__, __ctx__, 6 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 6; case 6: __ctx2__.__InnerExceptionDescription = ""; if ( !PostProgressInc( __seg__, __ctx__, 7 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 7; case 7: if ( !PreProgressInc( __seg__, __ctx__, 8 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[36],__eventData[9],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 8; case 8: __condition__ = __ctx2__.__ex_0.InnerException != null; if (!__condition__) { if ( !PostProgressInc( __seg__, __ctx__, 11 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 11; } if ( !PostProgressInc( __seg__, __ctx__, 9 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 9; case 9: __ctx2__.__InnerExceptionDescription = __ctx2__.__ex_0.InnerException.Message; if ( !PostProgressInc( __seg__, __ctx__, 10 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 10; case 10: if ( !PostProgressInc( __seg__, __ctx__, 12 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 12; case 11: __ctx2__.__InnerExceptionDescription = ""; if ( !PostProgressInc( __seg__, __ctx__, 12 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 12; case 12: if ( !PreProgressInc( __seg__, __ctx__, 13 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; if (__ctx2__ != null) __ctx2__.__ex_0 = null; Tracker.FireEvent(__eventLocations[37],__eventData[11],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 13; case 13: if ( !PreProgressInc( __seg__, __ctx__, 14 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[38],__eventData[12],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 14; case 14: { Microsoft.XLANGs.Core.Service svc = new MedegaImport.HandleException(5, InstanceId, this); _stateMgrs[5] = svc; __ctx2__.StartCall(__seg__, svc, __eventLocations[38],new object[] {__ctx2__.__returnCode, __ctx1__.__Context, __ctx2__.__ExceptionMsg, __ctx2__.__ExceptionDescription, __ctx2__.__InnerExceptionDescription}); } if ( !PostProgressInc( __seg__, __ctx__, 15 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; return Microsoft.XLANGs.Core.StopConditions.Blocked; case 15: if ( !PreProgressInc( __seg__, __ctx__, 16 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; { object[] args = ((Microsoft.XLANGs.Core.Service)_stateMgrs[5]).Args; __ctx2__.__returnCode = (System.Int32)args[0]; } { Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Call); __edata.Messages.Add(__ctx1__.__Context); __edata.Messages.Add(__ctx2__.__ExceptionMsg); Tracker.FireEvent(__eventLocations[39],__edata,_stateMgrs[2].TrackDataStream ); } if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 16; case 16: if ( !PreProgressInc( __seg__, __ctx__, 17 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[40],__eventData[7],_stateMgrs[2].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 17; case 17: __ctx2__.__exv__ = null; OnEndCatchHandler(2, __seg__); __seg__.SegmentDone(); break; } return Microsoft.XLANGs.Core.StopConditions.Completed; }