private void SendCustomProgramInfoToApi(ProgramData progData) { AnonymousDownloading.< > c__DisplayClass30_0 expr_05 = new AnonymousDownloading.< > c__DisplayClass30_0(); expr_05.< > 4__this = this; expr_05.progData = progData; new Task(delegate { try { CgApiProgram expr_05 = new CgApiProgram(); expr_05.set_ExeName(expr_05.progData.ExeName); expr_05.set_RegName(expr_05.progData.RegName); expr_05.PostProgramInfo().ConfigureAwait(false); } catch (Exception ex) { McExceptionLogItem expr_3B = new McExceptionLogItem(); expr_3B.set_RelatingException(ex); expr_3B.set_ExceptionMessage("Failed to trigger Post Program Info" + ex.Message); McExceptionLogItem aEvent = expr_3B; ObjectHolder.EventLogger.LogLocalEvent(aEvent); CgApiProgram expr_05; HelperFunctions.DebugLine(string.Format("{0}::{1} PostProgramInfo FAILED {2}", expr_05.< > 4__this.GetType().Name, MethodBase.GetCurrentMethod().Name, ex.Message)); } }).Start();
private void SendCustomProgramInfoToApi() { new Task(delegate { try { foreach (ProgramData current in this.ProgramDataList) { if (current.Visible) { CgApiProgram expr_23 = new CgApiProgram(); expr_23.set_ExeName(current.ExeName); expr_23.set_RegName(current.RegName); expr_23.PostProgramInfo().ConfigureAwait(false); } } } catch (Exception ex) { McExceptionLogItem expr_63 = new McExceptionLogItem(); expr_63.set_RelatingException(ex); expr_63.set_ExceptionMessage("Failed to trigger Post Program Info" + ex.Message); McExceptionLogItem aEvent = expr_63; ObjectHolder.EventLogger.LogLocalEvent(aEvent); HelperFunctions.DebugLine(string.Format("{0}::{1} PostProgramInfo FAILED {2}", base.GetType().Name, MethodBase.GetCurrentMethod().Name, ex.Message)); } }).Start(); }