Feb 15, 2011 at 10:20 PM
Edited Feb 15, 2011 at 10:25 PM
I am sure someone must have encountered the same problem, but I was unable to find a solution online
Parent Conductor > Login Screen, Other screens(conductors) etc > Sub screens
Based on the users actions we create the instances of screens used and close them using TryClose() when they close a subscreen or say logout.
But I see that when I create a new instance of any screen of type which was closed, and create a new one; the older screen which was closed using TryClose() is still in memory.
So if the older screens use EventAggregator and subscribe, they still listen and the respective methods get invoked when I want only one invokation which is in the new screens. I dont want service calls to be made multiple times due to the older screens acting
FYI, I am using Unity container to create instances.
Any help is greately appreciated as this is bloating our business application and slowing down by invoking unexpected service calls.