I have a conundrum with versioned editing when a user has finished their work and edits are outstanding. Checking the state 'esri_editing_HasEdits' is easy and sufficient for determining when there are edits, but I need to call the Save Edits button 'esri_editing_SaveEditsBtn' to prompt the user to save or discard the edits, in lieu of there being any SDK call that I have found to support interacting with the Editor.
The challenge comes in using IPluginWrapper to get an ICommand to execute, as there is no way to wait (or await) the result of the dialog that is inevitably presented to the user. This means I cannot tie any further necessary operations conditionally after the call to Save Edits, because the Execute command returns immediately before the user has had a chance to interact with the dialog.
Is there any other way to accomplish what I am attempting, or perhaps any plans to surface this sort of editing control via the SDK?