skip to the main content area of this page
Patterns and Practices

Unity


 

Unity IoC - Optional Dependency Injection Sample from Extending Unity Samples

A quick sample on how to use the OptionalDependency Attribute in the samples available from the Extending Unity Webcast.

Read More

Download Extending Unity Samples from Unity Webcast

There is no documentation or on-demand webcast available to assist you with extending Unity at this time, but you can download a couple of samples from the webcast.

Read More

Unity 1.2 First Drop - Silverlight - CLR Bug Fix - Generic Decorator Chains

The first Unity 1.2 Drop is here.

Read More

Enterprise Library 4.1 and Unity 1.2 Project Kickoff

Grigori Melnik mentions the project kickoff of Enterprise Library 4.1 and Unity 1.2. In particular, I am excited about the AOP Interception Mechanism and Policy Injection Application Block Integration!

Read More

Extending the Unity Dependency Injection Container Webcast

Documentation on Extending Unity has not been added as of yet to the help file and on the web, so you will want to watch this webcast on Extending the Unity Dependency Injection Container.

Read More

Dependency Injection with Microsoft Enterprise Library Unity Application Block Webcast

Again, you probably missed the Unity Webcast by Microsoft Patterns and Practices because it happened at 12pm Pacific Time today as opposed to 8pm Pacific Time today as shown on Microsoft Events. So, you don't get to provide them valuable feedback and get your questions answered, but you can watch it on-demand when it is available.

Read More

Unity and ASP.NET Web Pages Dependency Injection Part II with Special Guests - Autofac and Ninject

In this screencast we discuss ASP.NET Webforms Dependency Injection with Unity using a custom HttpModule that injects dependencies into web pages, masterpages, and usercontrols without the need for base classes. Inspiration is taken from two open-source, lightweight, and easy to use Inversion of Control Containers - Autofac and Ninject.

Read More

Unity IoC and ASP.NET Screencast - Dependency Injection into Web Pages

A new screencast showing one way to use the Unity IoC Container from Microsoft Patterns and Practices with ASP.NET Webforms. It discusses using the UnityContainer.BuildUp Method in a Base Page Class to inject dependencies into your web pages. The screencast also shows how to attach the UnityContainer to the Global Class in ASP.NET and access it via an IContainerAccessor Interface. You can download the source code shown in the screencast.

Read More

Enterprise Library 4.0 Validation Application Block and Unity IoC Screencast

A new screencast showing off the use of the Enterprise Library 4.0 Validation Application Block with Unity IoC. Rather than using Unity Extensions as in the previous screencast with the Data Access Application Block, this screencasts shows how to create and register a simple wrapper around the Validation Application Block Facade Class that you can inject into your custom classes via Unity to validate business objects.

Read More

Enterprise Library 4.0 Data Access Application Block ( DAAB ) and Unity IoC Screencast

A new screencast showing off the use of the Enterprise Library 4.0 Data Access Application Block using the EnterpriseLibraryCoreExtension and DataAccessBlockExtension that provide Unity IoC Integration. Step-by-step I show how to create a UnityContainer, add the extensions, access the database classes from the container, and inject those database classes into your custom classes. Enjoy.

Read More

Unity 1.1 Download Released - Lightweight and Extensible Dependency Injection Container

Right after the release of Enterprise Library 4.0 the Microsoft Patterns & Practices Team announces the release of Unity 1.1, their lightweight and extensible Dependency Injection Container.

Read More

Enterprise Library 4.0 Available for Download - Tutorials and Samples Forthcoming

Download Enterprise Library 4.0 for Visual Studio 2008 and the .NET 3.5 Framework. Unity IoC Integration is worth creating a few tutorials and screencasts. A few changes to existing application blocks is worth showing off as well, so expect some Enterprise Library 4.0 samples in the near future.

Read More

Unity Contrib Project Opens Its Doors - Unity Extensions Samples Tutorials

With the release of Unity 1.0 we now have the Unity Contrib Project, which is a community-driven project where ObjectBuilder and Unity IoC Gurus can submit Unity Extensions, Samples, and other assets to share with the developer community.

Read More

Unity 1.0 Released - Microsoft IoC and Dependency Injection

Unity 1.0 was released from Microsoft Patterns & Practices. The Unity Application Block (Unity) is a lightweight extensible dependency injection container with support for constructor, property, and method call injection. It runs on top of ObjectBuilder 2.0.

Read More

Unity IoC - Dependency Injection in ASP.NET MVC Framework Screencast

This screencast shows step-by-step how to add the Unity IoC Container to an ASP.NET MVC Framework Application to create controllers and inject their dependencies. It discusses DefaultControllerFactory, IControllerFactory, ControllerBuilder, and registering and resolving types with IUnityContainer.

Read More

Unity March 24 Update: Mapping of Generic Types - Injection Configuration - Performance Improvements

A new Unity release on March 24, 2008 that includes mapping of open generic types, the ability to specify injection configuration via a configuration file, and some performance improvements...

Read More

Unity Release Date Rescheduled for April 7 - Probably EntLib 4.0 too...

Grigori mentions that the release date for Unity has been rescheduled for April 7, 2008 as opposed to the original March 15, 2008. There is a good chance that Enterprise Library 4.0 CTP 1 will be pushed back to April 7th as well, but Grigori didn't say one way or the other.

Read More

New Unity IoC Screencast

I created a new Unity IoC Screencast based on a number of changes to the Unity API as well as a new release of the ASP.NET MVC Framework Preview 2. In addition to showing how to use Unity with ASP.NET Webforms Model-View-Presenter and the ASP.NET MVC Framework, the new Unity Screencast shows about a dozen common usages of Unity, including...

Read More

Unity IoC - March 12th Weekly Drop - New API for Configuring Injection

The Unity Dependency Injection Tool from Microsoft has a new installer this week as well as a new API for configuring injection so that you no longer need to add attributes to your classes to signal constructor, property, and method injection. Read more...

Read More

Unity IoC and ASP.NET MVC Framework - Dependency Injection of Controllers

An updated code sample of using the Unity IoC Container with the ASP.NET MVC Framework based on the API Changes to Unity that occurred on the March 4th, 2008 Weekly Drop. Unity can be used in a CustomControllerFactory to create your MVC Controllers and inject dependencies. The sample code is modeled after the Castle Windsor Example in MVCContrib.

Read More

Unity March 4, 2008 Weekly Drop - RegisterType Resolve ContainerControlledLifetimeManager

The March 4, 2008 Weekly Drop of Unity is out and includes a number of API Changes on how you register types, resolve instances, and control the lifetime of registered types. In general, SetSingleton is gone, Get has been replaced by Resolve, Register has been replaced by RegisterType, and RegisterType now contains overloads to add a LifeTimeManager Instance. Read more...

Read More

ObjectBuilder Build Plans - BuildPlanStrategy and DynamicMethodPlan for WCSF v2.0 and Unity

The Web Client Software Factory v2.0 Documentation mentions a new ObjectBuilder BuildPlanStrategy for object creation that replaces a number of other strategies that used reflection quite heavily: ConstructorReflectionStrategy, CreationStrategy, PropertyReflectionStrategy, and MethodReflectionStrategy. Unity will also be taking advantage of the DynamicMethodPlan Build Plan, which should provide a lot better performance for object creation in your applications.

Read More

Unity Nested Containers - IUnityContainer and CreateChildContainer

The Unity Inversion of Control and Dependency Injection Container from Microsoft Patterns and Practices supports nested containers, where a Parent Container has the ability to create child containers. What is cool about the Parent-Child Relationship between UnityContainers is that by default Unity will search the local container to resolve a type mapping, and if not found, will navigate up to any Parent Containers to resolve the type. This provides the ability to override global ( parent ) type mappings with local ( child ) type mappings.

Read More

Unity and Enterprise Library 4.0 Release Plans

Grigori just mentioned the release plans for Unity 1.0 and Enterprise Library 4.0 which are a bit startling as they are right around the corner...

Read More

Unity IoC - February 26 Weekly Drop - LifetimeManagers TearDown Extensions and IDisposable

Unity has a few changes in the February 26th Drop: 1) SetLifetime method allows you to specify a LifetimeManager object for a particular dependency, 2) Teardown: Unity now has a Teardown method which objects can be run through to shut down / clean up / whatever you want, and 3) Extensions can implement IDisposable: If an extension object implements IDisposable, it now gets disposed when the container does. Read more...

Read More

 

Topics



 

Popular Tags



Recent Links