Downloaded Xap with DevForce On Demand Discovery

5 replies. Last post: July 26, 2011 7:49 AM by Balachander KB
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

I have an application (modelled around your ClientUI sample) where xap's are downloaded on demand.

While using it with DevForce I ran into a problem from IdeaBlade 'entity type queried is not a known type' when I was accessing data from one of the downloaded xaps.

The article On Demand Discovery hosted here http://drc.ideablade.com/xwiki/bin/view/Documentation/on-demand-discovery

pointed me to the problem.

I then implemented a shell manager and assigned it to the UXShell's Default Shell manager.

In the Downloaded event of the Shell Manager I have made the On Demand Discovery possible by adding the following line of code.

public void Downloaded(ApplicationActivityEventArgs arg)
        {
            string xapName = arg.Application.Source.OriginalString;
           var xap = new IdeaBlade.Core.DynamicXap(new Uri(xapName, UriKind.Relative));
           IdeaBlade.Core.Composition.CompositionHost.Add(xap);
        }

 

Is this the correct way to do it ?

Why does ClientUI not implement MEF ?

 

Balachander

All times are GMT -5. The time now is 10:49 PM.
Previous Next