Hi,
I would need to share server configuration loading and preparation for multiple ViewItem plugin objects.
Which are the choices in implementing the communication between a common shared Background plugin (running on client side) and many custom ViewItem objects?
I aready know about the Chat sample, but this would need to send/listen to messages.
If I do this at ViewItemUserControl initialization time it could leave its properties in inconsistent status because waiting for replies asynchronously.
This could prevent me to fully initialize the UserControl in a single run, forcing to implement a step by step checklist of replies received to follow before having it fully operational.
Is it possibile to link the ViewItemUserControl directly to the shared Background plugin instance? I would prefer to call its public member functions.
Is there a chance to have it possible by linking back the ViewItemUserControl to its ViewItemPlugin parent and then back to its PluginDefinition parent and doing the same also for the background BackgrounPlugin?
I would store the parent object references at construction time for each object.
So, imagining to have defined the right access properties to parents/childs, I could call BackgrounPlugin member function like this:
reply = viewItemUserControl.ParentViewItemPluginReference.ParentPluginDefinitionReference.OnlyChildBackgroundPluginReference.BackgroundMemberFunction(request)
I know this could become messy in case requests are coming from the opposite direction (from background to viewitem) but I dont need this kind of requests