开发者

Unloading dll's from SIlverlights App Domain

Is it possible to unload a Dll that I previously dynamically loaded into my App?

Background/comments:

1.- We have a requirement that third party developers will implement a wizard-like activity that will be dynamically loaded and executed into our Silverlight application.

2.- We will probably use MEF to put the XAP and Dll catalog into the Silverlight App Domain.

3.- With MEF, its possible to unload the catalog objects, but the Dll will remain loaded into the App Domain.

What we are looking for is to get rid of those Dlls in memory, as the appliance that runs the SL application can remain powered on for long time, and we don't want to pollute its memory with unnecessary Dlls.

Any id开发者_StackOverflow社区eas?


You cant unload a single dll from an appdomain on any version of th clr, the only option for unloading dlls is unloading the entire appdomain.

Unfortunatly you cant create your own appdomains in silverlight as far as i know, but you could always have multiple silverlight apps on the same page.

i wonder though if its a long running app, if its not better to look at desktop .net.. you could use the .xbap deployment format if you still want to run your app in the browser

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜