StructureMap Episodes

# 150 Adding IoC Support to your WCF Services

10/3/2009

Level: Advanced

Author: Derik Whittaker

Tags: IoC WCF StructureMap

Views: (3830) Watched: (6374)

In this episode we are going to take a quick look at how to setup your WCF services to use an IoC Container.

When building out a set of services in WCF you still would like to follow the SOLID principles and in order to do this you may want to setup the ability to inject dependencies (via Structure Map) into your services at run time. With WCF extension points this is not only possible, but pretty easy

# 135 Exploring StructureMap: Learning how to setup profiles

8/13/2009

Level: Intermediate

Author: Derik Whittaker

Tags: IoC StructureMap

Views: (2655) Watched: (3053)

In this episode we are going to continue our series were we are exploring some of the features of StructureMap 2.5.

In this episode we are going to take a look at how to setup profiles to allow the container to dynamicly determine which objects to inject.

--- Sponsor Information ---
ANTS Memory Profiler 5 out now. It’s a must have in your toolbox if you program in C# or VB.NET.
Download your free trial of ANTS Memory Profiler here.

# 132 Exploring StructureMap: Learning how to setup registries

8/4/2009

Level: Intermediate

Author: Derik Whittaker

Tags: IoC StructureMap

Views: (2685) Watched: (2718)

In this episode we are going to continue our series were we are exploring some of the features of StructureMap 2.5.

In this episode we are going to take a look at how to setup and use the Registry feature of StructureMap. This is a feature that will allow the IoC container to scan for and find a method in a single class which will setup your mappings for the associated assembly.

--- Sponsor Information ---
ANTS Memory Profiler 5 out now. It’s a must have in your toolbox if you program in C# or VB.NET.
Download your free trial of ANTS Memory Profiler here.

# 128 Exploring StructureMap: Learning how to setup Auto Registration

7/21/2009

Level: Intermediate

Author: Derik Whittaker

Tags: IoC StructureMap

Views: (2907) Watched: (2848)

In this episode we are going to kickoff a new series were we will be exploring some of the features of StructureMap 2.5.

We are going to start off by looking at the simple use case and how to setup for Auto Registration. Auto Registration is where StructureMap can map your types for you, assuming you follow the standard convention where Foo implementes IFoo.

--- Sponsor Information ---
ANTS Memory Profiler 5 out now. It’s a must have in your toolbox if you program in C# or VB.NET.
Download your free trial of ANTS Memory Profiler here.

# 62 Introduction to the AutoMocking Conatiner in StructureMap

11/6/2008

Level: Intermediate

Author: Derik Whittaker

Tags: Mocking StructureMap

Views: (1944) Watched: (3802)

In this episode you will take a look at how to use the AutoMocking Cotainer that is part of StructureMap 2.5

You will be shown how to setup and use this container to reduce noise in your tests.

# 48 Contextual binding with StructureMap

9/24/2008

Level: Advanced

Author: Derik Whittaker

Tags: IoC StructureMap

Views: (2075) Watched: (3962)

In this episode we will walk you though how to do contextual binding with StructureMap 2.5.

What is Contextual Binding? Contextual Binding is the ability to switch out different concrete implementations of a service (i.e. class) at runtime depending on the context in which they are used.

# 42 Adding IoC Support (w/StructureMap) to ASP.Net MVC

9/4/2008

Level: Beginner

Author: Derik Whittaker

Tags: MVC IoC StructureMap

Views: (2375) Watched: (4682)

In this episode we take a look at how to setup an ASP.Net MVC website to use IoC for creating its controllers. We will learn how to replace the default ControllerFactory with our own implementation.

# 39 Getting Started with StructureMap -- Simple Setup Scenarios (v2.5)

8/26/2008

Level: Beginner

Author: Derik Whittaker

Tags: IoC StructureMap

Views: (2302) Watched: (5913)

In this episode we take a look at how to setup and configure StructureMap for dependency injection.

We will review how to configure your dependencies 2 different ways. First we will review how to use StructureMaps configuration Files and then we will review how to use the built in DSL syntax for wiring.