Unloading CAB Modules from TabWorkspace

S

sam01m

Using Composite Application Block UI, is it possible to unload a module.
Looking into the ModuleLoaderService I can see a Load method, but how can I
gracefully close a module?

I have a custom module loader, which reads from a database, creates a button
for each module, and loads modules OnDemand. Some of the modules add-in Menu
items via UIExtension Sites. If I were to just find the WorkItem by way of
something like:
this.workItem.WorkItems["workItemToClose"].Remove(); how could I go about
cleaning up the other components, or would they all just close, too?

P.S. please don't waste my time with replaies about whether or not I chose
the appropriate Discussion group... that won't help me any, I'll try and
select the correct group to th ebest of my ability.

Is there a good method for cleanly Unloading modules, as cleanly as they Load?
 
W

WenYuan Wang [MSFT]

Hello sam01m

It seems you want to know if it's possible to unload a module using
Composite Application Block UI, correct? If I misunderstood anything here,
don't hesitate to correct me.

We need to perform more research on this issue. We will reply here as soon
as possible.
If you have any more concerns on it, please feel free to post here.

Thanks for your understanding!
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

sam01m

You are correct in what I would like to do... However, even if it can be done
from outside of CAB. I've all but given up at this point because of all that
I've been reading about AppDomains loading Assemblies and only being able to
unload at AppDomain dispaosal, though I still feel that it is possible with
CAB due to the use of [InjectionConstructor], I'm just running out of time to
figure out how to implement some sort of Unload method within a particular
WorkItem...

For instance RootWorkItem.WorkItem["parentWorkItem] may contain
WorkItem["childWorkItem"] in its WorkItem Collection. When
WorkItem["childWorkItem"] loads he extends 2 UIExtension Sites... so within
the WorkItem["childWorkItem"] I would like to create a sort of " public
override void Unload() { } " method that is called by the
WorkItem["parentWorkItem] at the point that the parent is instructed to abort
the WorkItem["childWorkItem"]. This approach would allow a WorkItem to
gracefully destruct that which should not remain when the Parent Loading
object is destroyed.
 
W

Walter Wang [MSFT]

Hi,

For questions of the Composite UI Application Block, please refer to
http://codeplex.com/smartclient.

Currently our MSDN Managed Newsgroup support service doesn't include
support for this project. Thanks for your understanding.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

sam01m

Thank you. The extent of my support contract can pretty much be summed up as

"Thanks for your inquiry, but you are barkinig up the wrong tree"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top