AnsweredAssumed Answered

ActivePortalChangedEvent is not fired after change teh active portal

Question asked by gismountains on Dec 11, 2017
Latest reply on Dec 11, 2017 by UHarano-esristaff


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

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