Top ASP.NET Items

Sponsors

Browse by Tags

All Tags » MEF (RSS)
Silverlight 3 Navigation: Even more on Dynamically Loaded Pages
I got a lot of great feedback on my post Silverlight 3 Navigation: Dynamically Loaded Pages… Now MEF Powered! Dinesh Chandnani decided to do an update to this sample after looking at the feedback and talking to Nikhil Kothari and Wes Haggard from the MEF dev team.   The goals for this update are: Show even more of a web like user model.  With the web, you often see all the links in the navigation, but the actual page only downloads once the user clicked the link.  Lose coupling.  I need to be able to be able dynamically add, update even remove pages from my application without taking down the app and without rebuilding it. Built in authentication.  In real business apps, we need to protect our data, so authentication...
Silverlight 3 Navigation: Dynamically Loaded Pages… Now MEF Powered!
Recently David Poll posted a very cool technique for navigating to dynamically loaded pages and on demand downloading of pages in a Silverlight 3 application .  It was very cool but the explicit wire up of each page can be a pain in large applications.  So having just posted about MEF on Silverlight , I thought this was a great fit.  The Managed Extensibility Framework (MEF) is all about discovering and wiring up components and Silverlight 3 Navigation has some very interesting components.    But before I could get it done, our Test Manager, Dinesh Chandnani beat me to it.  He wrote this very cool example app that I extended just a bit. Download the all the source code and check out an live sample … The model...
Simple Example of Managed Extensibility Framework (MEF) in Silverlight
As you may have heard, we recently shipped MEF support of Silverlight in our CodePlex drop .. I wanted to give you a very simple introduction to MEF and how to use it in Silverlight. This example will show how to use lose coupling, dependency injection and delay loading of components. This is also an update to my Simple MEF example from a few months ago as just about everything here applies to WPF, WinForms and ASP.NET apps as well. The demo requires (all 100% free): VS2008 SP1 Silverlight 3 RTM MEF’s July CodePlex drop Also, download the full demo files … Let’s start with the very cool Silverlight Navigation Application Setting up The Problem This is a very simple example just to show how the technology works. Let’s say you want to put some...
Managed Extensibility Framework (MEF) Preview 6: V1 Feature Complete Silverlight Support and Much More!
Today we released MEF Preview 6 on codeplex .  Not only is this the feature complete build for MEF V1.0 (which will ship with .NET Framework 4) but it also has the first drop of MEF for Silverlight!   Nick has the best summary of what is new .. but a few highlights: Silverlight support Lazy<T> replaces Export<T> Collection import changes Inheritance changes Export attribute is unsealed Stable Composition makes its debut Please go download the bits (and full source) which works with .NET Framework 3.5 and Silverlight 3 on the CodePlex site . As always, we’d love your feedback and thoughts on MEF discussion forum .  Want to know more about MEF?  Check out Jason Olson’s new Video 10-4 Episode 26: Creating Extensible...
The DZone interviews Hamilton Verissimo on MEF
The DZone has a nice interview with Hamilton on MEF .  Microsoft MEF Q&A with Hamilton Verissimo de Oliveira Hamilton is one of our PMs here at Microsoft as well as the creator of the very popular Castle Project and he will tell you what the core value of MEF, tell you if MEF a DI container or not and get you versed in the MEF terminology.  Read and Enjoy! Read More...
Posted: May 12 2009, 11:24 PM by Brad Abrams
Filed under:
Redmond Developer: Working with MEF in VB and WPF
Kathleen Dollard has a very good article on  that talks about using Managed Extensibility Framework (MEF) to  allow customers to add their own forms to our Windows Presentation Foundation (WPF) app?   In this simple example she show adding custom defined forms into the standard menus.. all of this is done in VB !   Redmond Developer: Working with MEF   <Export( GetType (IExtension))> _ <ExportMetadata( "MenuCaption" , "First" )> _ Partial Public Class First Implements IExtension Public Sub ShowWindow() _ Implements Common.IExtension.ShowWindow End Sub End Class.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace;...
Posted: Apr 02 2009, 01:21 PM by Brad Abrams
Filed under: ,
dnrTV Does MEF!
Glenn Block recently did a great screen cast on the Managed Extensibility Framework.  Show #130 | 11/26/2008 Glenn Block on MEF, the Managed Extensibility Framework Glenn Block shows you how to use MEF to allow a plugin architecture in your .NET applications. The framework is extensible enough to allow any type to be imported and exported as managed plugins, which are called parts. Read More...
Posted: Nov 30 2008, 11:56 PM by Brad Abrams
Filed under:
MEF Preview 3 Shipped!
I am pretty excited to see MEF preview 3 ship on codeplex today!  Please check out Glenn's post for all the details... This is a release where we really focused on getting in your feedback...   We are 100% MSPL, we are shipping our own unit tests, we have made several design changes based on feedback around defaults, ExportProvider, etc.   One thing I love about taking on a big customer such as Visual Studio , is you get good, real world feedback up front.  In this CTP, we really focused on performance and performance best practices.  Whether you use MEF directly or just use Visual Studio, you will appreciate this work! So grab the bits and let us know what you think! Read More...
Posted: Nov 25 2008, 11:55 PM by Brad Abrams
Filed under:
Managed Extensibility Framework (MEF) Demo
The Managed Extensibility Framework (MEF) is a new feature of .NET 4 (and will work on 3.5 as well) that makes it significantly easier to extend applications and generally support application composition patterns.  What does that really mean?  Well, take 6 mins and 5 seconds to watch this excellent demo Scott Guthrie did at his PDC2008 keynote .   Download video directly Other MEF resources: MEF Codeplex site (get the installer and all the source code) Simple MEF Example Introduction to MEF MEF talk at PDC 2008 Read More...
Posted: Nov 07 2008, 10:10 PM by Brad Abrams
Filed under:
Repeat of the MEF talk at PDC2008
After the amazing great reception MEF got during ScottGu's keynote yesterday we had tons of people ask about a MEF session.  So we are VERY happy to be able to repeat Glenn's MEF session... Please come if you can. TL33-R Managed Extensibility Framework: Overview [REPEAT] Wed 10/29 | 4:45 PM-6:00 PM | 409A Presenter: Glenn Block Glenn Block Please Note: This session is a repeat of TL33, which originally took place on October 27th at 1:45PM. The Managed Extensibility Framework (MEF) is a new extensibility model in the .NET framework that provides a simple declarative model for application developers and extenders to build openly extensible applications. Come to this session and you'll learn about our Composition model and the...
Posted: Oct 29 2008, 01:14 PM by Brad Abrams
Filed under: ,
More Posts Next page »