I am looking for a way to call method 2 from method 1 but only after method 1 has completed.
I am considering queueing up the methods with an action list:
List queue = new List();
Then instead of calling methods, I’ll queue them up and let a processing loop have at them. Is this stupid? Is there a better way? Cough@josecgomez.sixsCough
You could simply call method 2 after you are done processing within method 1, if I understand this right, and you are not doing anything async. If you queue up the two methods you are technically calling both of them from a 3rd method. The example below would be much like what you would use should you add them to a queue and they would be FIFO.
I have a lot of helper functions - picture this:
RemoveMasterLabel = ClearMasterOfChildren - RemoveMasterLabel - Refresh - SuggestNewMaster -CalculateMasterQty - Refresh
SuggestNewMaster = Prompt - AddNewMaster (if needed) - SetMasterOfChildren - CalculateMasterQty -Refresh
This is a horrible explanation but essentially I have nested actions which are causing issues because the current action is not complete. I need to run all of these to a queue to ensure they finish in order.