Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding relation DLL to be part of the project
Message
De
05/04/2012 08:42:36
 
 
À
05/04/2012 01:34:24
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01540219
Message ID:
01540407
Vues:
38
>>>Managed Extensibility Framework. It is not really a framework but a mechanism for extending .NET (hence the name). It falls into a category called inversion of control or dependency injection. The gist of it is compliant helpers are discovered at runtime. One of the most memorable demos I have ever seen was a couple of years ago at a .NET user group meeting. The presenter showed a simplified app which used MEF. It used a Windows timer call to discover files in a given folder. The folder consisted of pictures of animals. He added a picture of an elephant and voila, an elephant appeared on the form. No code change, no recompilation. Now that was cool.
>>
>>Thanks, but I believe this is something we could do since about 20 years.
>
>Possible, but not easy.
>
> Unless I am missing something. :(
>
>Mike's example is a simple demonstration. Imagine dropping a DLL into a folder and having it immediately incorporated into an already running application - adding it's own menu, toolbar etc on the fly. Delete it and the functionality is gone.

Just from the little I've worked with it in the course of wrapping my head around Prism both Unity 2.0 and MEF are very cool. Especially useful in scenarios where dlls need to be augmented or swapped out live based on upgrade etc. This modular approach can indeed be a godsend in certain use-cases.


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform