Hello
ArcGIS Pro SDK question: an addin needs to know if the user change the portal which is active. for this purpose it looks that there is an event:
ArcGIS.Desktop.Core.Events.ActivePortalChangedEvent. But it is not fired.
I used the Snippet from https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Sharing
ArcGIS.Desktop.Core.Events.ActivePortalChangedEvent.Subscribe((args) => { var active_uri = args.ActivePortal?.PortalUri.ToString(); //etc});And subscribed the event after Event "ArcGIS.Desktop.Framework.Events.ApplicationStartupEvent" in the initialize-function like it is described in the chapter "Subscribing to Application Events": ProConcepts Configurations · Esri/arcgis-pro-sdk Wiki · GitHub
other events like ProjectClosedEvent, ProjectOpenedEvent, ProjectSavedEvent, ProjectItemsChangedEvent works fine.
But the events ActivePortalChangedEvent, ArcGISPortalAddedEvent, ArcGISPortalRemovedEvent do not work as i expect. Do I understand something wrong?
Thanks in advance