Environment versions
Network:
Windows 2003 Server
>>Exactly. Of course the main project needs to be written so it can be aware of transient (or permanent) additions.....
>
>Seems like the Windows Updates and its patching mechanism.
Not at all. It's not about simply replacing a DLL or updating using a binary patch.
As a simple example imagine a 'MEF enabled' ordering system:
At startup you give MEF a list of places where it will find bits that may be used by the application. This could be a concrete list of DLLs, or maybe you specify all DLLs in a specific folder or URI.
Assume you've defined an interface named IProcessOrder. When the user hits 'Submit' MEF can search the catalog of parts, find one that implements the interface and give it the job. Let's assume that it simply writes the order detail to a SQL database. So far no big deal.
But now the user comes to you and asks that when an order is submitted the application should also generate a packing list and notify the warehouse. You don't touch the existing code - just create another assembly which also implements IProcessOrder and drop that into a searched folder for the user who needs that functionality. The next time the user hits 'Submit' MEF finds both bits that handle IProccessOrder and you run both.
Another user wants an email sent to the buyer when the order is accepted. No problem, just add another IProcessOrder implementation.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only