A guided tour of MEF in Silverlight 4 Mike Taulty Microsoft UK

Slides:



Advertisements
Similar presentations
Ofir Aspis 1/2010 VS 2010 Targets High Level - IDE New Features VS 2010 As Editor and Platform Demo Editor features Extending.
Advertisements

Chapter 13 Application Framework. Outline Definition & anatomy Fulfilling the framework contract Building frameworks Examples.
Change the Rules Silverlight 4 – Whats New? ( part 1 ) Mike Taulty, Microsoft UK
Expression Blend 4 – deep dive
Silverlight is dead! Long live MVVM!
 Glenn Block  Program Manager Microsoft Corporation TL33 TL49 Related sessions.
MVVM Basics with Caliburn.Micro Presented by Stefan Nuxoll, Lithium PC.
INTRODUCTION TO ASP.NET MVC AND EXAMPLE WALKTHROUGH RAJAT ARYA EFECS - OIM DAWG – 4/21/2009 ASP.NET MVC.
Change the Rules Silverlight 4 – What’s New? ( part 2 ) Mike Taulty, Microsoft UK
Managed Extensibility Framework Georges
.NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd
R R R CSE870: Advanced Software Engineering: Frameworks (Cheng, Sp2003)1 Frameworks A Brief Introduction.
Class template Describing a generic class Instantiating classes that are type- specific version of this generic class Also are called parameterized types.
By, Ben Dewey Senior Software Developer Tallan, Inc
By, Ben Dewey Senior Software Developer twentySix New York
Building Silverlight Applications Using the MVVM pattern An Introduction by Peter Messenger Senior Developer – Qmastor
Building Modular Silverlight Applications with the Managed Extensibility Framework Ben Dewey twentysix New York
IRS XML Standards & Tax Return Data Strategy For External Discussion June 30, 2010.
1 Developing Rules Driven Workflows in Windows Workflow Foundation Jurgen Willis COM318 Program Manager Microsoft Corporation.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 12 Object-Oriented Design.
Programming Languages and Paradigms Object-Oriented Programming.
Introduction to the Oracle Application Development Framework 11g
A Jumpstart to WPF by Kevin Grossnicklaus ArchitectNow.
Change the Rules Silverlight 4 – A Guided Tour of MEF Mike Taulty, Microsoft UK
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 09. Review Introduction to architectural styles Distributed architectures – Client Server Architecture – Multi-tier.
Windows Workflow Foundation Mike Taulty Developer & Platform Group Microsoft Ltd
Getting Started with Caliburn.Micro and Windows Phone 7 Gary Ewan Park Twitter: Blog:
Utilities (Part 2) Implementing static features 1.
ADO.NET Entity Framework Mike Taulty Developer & Platform Group Microsoft Ltd
Ocean Observatories Initiative Data Management (DM) Subsystem Overview Michael Meisinger September 29, 2009.
Tradepoint Enterprise – Sneak Peek at Version 3.0 Power Point Template.
Overview of Silverlight Mike Taulty Developer & Platform Group Microsoft Ltd
Visual Studio 2010 and.NET Framework 4 Training Workshop.
Josh Twist Principal Consultant, Microsoft UK
Nikhil Kothari Software Architect Microsoft Corporation Session Code: WUX312.
Windows 10 UWP MVVM In Depth
1  lecture slides online
Bart J.F. De Smet Software Development Engineer Microsoft Corporation Session Code: DTL315.
Model View ViewModel Architecture. MVVM Architecture components.
C# Fundamentals An Introduction. Before we begin How to get started writing C# – Quick tour of the dev. Environment – The current C# version is 5.0 –
© Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Programming with MVVM Miguel A. Castro Architect -
Understanding Dependency Injection… and those pesky containers Miguel A. Castro Architect -
The cutting edge event for ITPros and Devs December 7-8, 2013 Athens, Greece Fix it once use it everywhere Elias Markelis MCT, Windows Phone Enthusiast.
A tour of new features
Real world Windows Phone development
Abstract Factory Pattern
MVVM Made Simple with Prism
MIX 09 6/5/2018 9:14 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
MPCS – Advanced java Programming
Mark Seemann - Dependency Injection in .NET
Microsoft .NET 3. Language Innovations Pan Wuming 2017.
It’s a Knockout! MVVM Style Web Development
Managed Extensibility Framework
Abstract Factory Pattern
The Object-Oriented Thought Process Chapter 08
JS301 Week 4 Knockout and Objects.
Intent (Thanks to Jim Fawcett for the slides)
Miguel A. Castro Architect IDesign
Glenn Block MEF in the real world Glenn Block
WPF AKEEL AHMED.
AVG 24th 2015 ADVANCED c# - part 1.
Present by Andie Saizan, MCP
Dependency Injection with MEF and Unity
Lesson 5: More on Creational Patterns
Architecting Silverlight Applications with MVVM
How and When to Use MEF: Too Much Is Never Enough
.NET Framework V3.5+ & RESTful web services
Tech Ed North America /6/2019 2:07 PM Required Slide
An Introduction to the Model-View-ViewModel Pattern
Presentation transcript:

a guided tour of MEF in Silverlight 4 Mike Taulty Microsoft UK

MEF – What is it? How and when do I get it? the Managed Extensibility Framework an extensible framework for composing applications from a set of loosely-coupled parts discovered and evolving at run-time versions.NET Framework shipping with Silverlight 4.NET Framework 4 shipping with VS 2010 CodePlex version for Silverlight 3,.NET 3.5 Sp1

“scenario” AlbumArtProviderAlbumArtProvider GetAlbumInfo(“Blood on the Tracks”) GetAlbumArt(“Blood on the Tracks”) Constructor()

using MEF in our scenario

MEF models composable parts

MEF composes parts

which parts compose together? Contract Name Cardinality Shared Recomposable Metadata Contract Name Shared Metadata

matching imports to exports

parts & part definitions PartDefinition is a blueprint for a Part similar to Object and Type in.NET but can have Part without PartDefinition PartDefinition export import

container draws parts from catalogs

or mix in pre-instantiated parts

the built-in catalogs* ( *one is missing – we’ll come back to it later )

things change - recomposition part?

recomposition is key for Silverlight MyApp.xapExtras.xap

recomposition & the DeploymentCatalog ( completing our story of built-in catalogs )

stable composition reject parts with unsatisfied imports reject changes that break “agreements”

stable composition

MEF and Model View ViewModel Strong separation of concerns possible with Silverlight development user interface declared in XAML loosely binds to data functionality invoked by declarative commands Encapsulated by the “MVVM” pattern model (“data”) model (“data”) commands binding

MEF and MVVM

Pointers to more advanced topics

part ownership container only owns parts it created will Dispose those parts when it is Disposed container references some parts needs those marked shared or recomposable

extensibility – catalogs & export providers ExportProvider ComposablePartCatalog ExportProvider

MEF Primitives extensibility – programming models Programming models in MEF are pluggable [Attribute] is the built- in model Custom models involve implementing some/all of MEF’s primitive classes ComposablePartCatalog ComposablePartDefinition ComposablePart ExportDefinition ImportDefinition

resources Channel 9 Silverlight 4 MEF Screencasts channel9.msdn.com/tags/learnMEFSL4 Glenn Block blogs.msdn.com/gblock Nicholas Blumhardt blogs.msdn.com/nblumhardt MEF on CodePlex mef.codeplex.com

thanks for coming 