Dependency Injection with MEF and Unity

Slides:



Advertisements
Similar presentations
The Important Thing About By. The Important Thing About ******** The important thing about ***** is *****. It is true s/he can *****, *****, and *****.
Advertisements

AJAX Development By Gary Mandela December 26,
JD Edwards Service JD Edwards Service SAP Service SAP Service Java Appl. Service Java Appl. Service.Net Appl. Service.Net Appl. Service CICS Service.
RIA 1.0 AA We need…. We need….. BBCC RIA 1.0 We need….. DDEEFFGGHHIIJJKK We need….
A guided tour of MEF in Silverlight 4 Mike Taulty Microsoft UK
An overview of… Luis Guerrero Plain Concepts
Managed Extensibility Framework Georges
By, Ben Dewey Senior Software Developer Tallan, Inc
By, Ben Dewey Senior Software Developer twentySix New York
Building Modular Silverlight Applications with the Managed Extensibility Framework Ben Dewey twentysix New York
Composite Application Guidance Prism 2 A Rainbow of Possibilities.
Larry Mead Microsoft Corp. Jon Flanders Session Code: INT203.
Spring Overview, Application demo -Midhila Paineni 09/23/2011 Spring Overview, Application demo9/8/20151.
ASP.NET Web API Udaiappa Ramachandran NHDN-Nashua.NET/Cloud Computing UG Lead Blog:
Change the Rules Silverlight 4 – A Guided Tour of MEF Mike Taulty, Microsoft UK
TF-DI Meeting 13-Aug Agenda Discovery presentation from William Miller Review of discussions at F2F Sunnyvale Interaction patterns of tech landscape.
Dynamic Languages and the Web Jimmy Schementi Microsoft
TeSS – Training Workflows Workflow Team Meeting 13 August 2015.
Tradepoint Enterprise – Sneak Peek at Version 3.0 Power Point Template.
Visual Studio 2010 and.NET Framework 4 Training Workshop.
Visual Studio 2010 and.NET Framework 4 Training Workshop.
Jaroslav Šnajberk, Tomáš Potužák, Richard Lipka Department of Computer Science and Engineering Faculty of Applied Sciences University of West Bohemia,
EXTRA! New Student Manager Feature ROCKS!. Today’s Headlines.... What is the new feature? Installing the new export option An exporting demo Questions?
Josh Twist Principal Consultant, Microsoft UK
What the heck is MEF? And why should I care? Jason Offutt Software Engineer Central Christian Church
A Component Platform for Experimenting with Autonomic Composition A component framework for supporting composition of autonomic services and bio-inspired.
Gaming Frameworks for Windows 8 M4: YoYo Games GameMaker Michael Palermo Microsoft Technical Evangelist Jeremy Foster Microsoft Technical Evangelist.
Nikhil Kothari Software Architect Microsoft Corporation Session Code: WUX312.
BI Practice March-2006 COGNOS 8BI TOOLS COGNOS 8 Framework Manager TATA CONSULTANCY SERVICES SEEPZ, Mumbai.
Bart J.F. De Smet Software Development Engineer Microsoft Corporation Session Code: DTL315.
Understanding Dependency Injection… and those pesky containers Miguel A. Castro Architect -
The Role of Reflection in Next Generation Middleware
Asynchronous Programming with C# v.Next
Angular 4 + TypeScript Getting Started
Mark Seemann - Dependency Injection in .NET
Business Connectivity Services in SharePoint 2010 and Office 2010
9/4/2018 5:28 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Dependency Injection Andres Käver, IT College 2016/2017 Spring.
Did your feature got in, out or planned?
Building Web Applications with Microsoft ASP
Managed Extensibility Framework
Microsoft Dynamics.
Data Exchange.
By Gary Mandela December 26, 2006
HI !.
Microsoft Build /8/2018 5:15 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Tech·Ed North America /10/2018 2:43 PM
Populating a Data Warehouse
Service Metadata Registry (COSMOS)
Glenn Block MEF in the real world Glenn Block
Welcome to GDC’05 Riyadh, Saudi Arabia
Present by Andie Saizan, MCP
Populating a Data Warehouse
SPC2012 – IT-Pro 11/30/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Tech·Ed North America /7/2018 2:51 PM
Developing Games for Windows Phone 7 with XNA Game Studio 4.0
MIX 09 12/8/2018 4:33 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Aspect-oriented programming
Peter Provost Sr. Program Manager Microsoft Session Code: DEV312
OOPSLA Workshop on Domain-Specific Modeling Tools Workgroup
TechEd /3/ :48 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Explore PnP Partner Pack for IT pros, admins and architects
How and When to Use MEF: Too Much Is Never Enough
WCF and .NET Framework Microservices in Containers
5/30/2019 1:59 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION.
Windows Forms in Visual Studio 2005: An in-depth look at key features
SSIS Data Integration Data Warehouse Acceleration
L. Xia, J. Strassner, C. Basile, D. Lopez
Talking Between Services with gRPC
9/14/2019 6:51 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Presentation transcript:

Dependency Injection with MEF and Unity Pavel Yosifovich Hi-Tech College pavely@hi-tech.co.il http://blogs.microsoft.co.il/blogs/pavely

Agenda Why MEF? MEF Features Why Unity? Unity Features Q & A Summary

MEF Basics DEMO

MEF Basics Parts Catalog Container Export and Import A list of parts The matchmaker Composition MEF Part Export Import MEF Part Export Import

MEF Basics - Catalogs AggregateCatalog DirectoryCatalog AssemblyCatalog TypeCatalog

MEF Features DEMO

More MEF Features [ImportingConstructor] [ImportMany] Creation Policy AllowDefault=true Re-composition Metadata

MEF - Summary MEF is about extensibility through composition Dependency Injection capabilities Not a true IoC container Part of .NET 4 MEF for Silverlight 4 Mostly similar, some Silverlight specific features( e.g. DeploymentCatalog)

Basic Unity DEMO

Unity Basics A true IoC container Registering types Resolving and injecting dependencies Configuration

More Unity Features DEMO

More Unity Features Lifetime management Hierarchical containers Aspect Oriented Programming (AOP) Interception

Questions?

Summary MEF is an extensibility framework Unity is an IoC container Exports & Imports Metadata and Re-composition Unity is an IoC container Type resolution Interception (AOP) Both provide Dependency Injection

Resources MEF on CodePlex Unity on CodePlex http://mef.codeplex.com/ Unity on CodePlex http://unity.codeplex.com/ Microsoft Patterns & Practices http://msdn.microsoft.com/en-us/practices/

משובים ופייסבוק מירב- השלמה