I am developing an Pro application that will control edit events.
I would like to give option to turn of this option.
In ArcMap I would develop code that implement IExtension and IExtensioConfig then the extension "remember" if it is on or off. If it is on it runs the startup. If I am turning it off it will un subscribe to the events.
Here is the docs for ArcMap https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#AppFrameworkExtensionHowTo.htm
Moving to Pro I used this example: https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/Licensing
I do not have a license for the extension.
I see two problems. First I do not see startup method - what code is running when extension exists?
Then the extension is always turned off, I could not find a way to remember the last state.