Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
Your profile
Tag cloud
.net android asp.net asp.net mvc azure backup bigdata book c# community continuous delivery database denali gotcha how to indexing java linq mongodb nancy nhibernate nosql performance powershell restore ruby security silverlight sql sql advent 2012 sql friday sql server sql server 2000 sql server 2005 sql server 2008 sql server 2008 r2 sql server 2012 sql server denali sqlcop ssis ssms ssrs structuremap t-sql tip training unit testing vb.net visual studio 2010 windows 7
Authors
- SQLDenis (577)

- Christiaan Baes (chrissie1) (527)

- Ted Krueger (onpnt) (332)

- Jes Schultz Borland (grrlgeek) (139)

- Eli Weinstock-Herman (tarwn) (116)

- Alex Ullrich (51)

- George Mastros (gmmastros) (46)

- Naomi Nosonovsky (27)

- Axel Achten (axel8s) (23)

- David Forck (thirster42) (22)

- Koen Verbeeck (20)

- Kevin Conan (18)

- chopstik (18)

- Rob Earl (14)

- thatrickguy (12)

- More...
Main Categories
Search
Google Ads
Tags: structuremap
Differences between Autofac and Structuremap with VB.Net the use of Lazy(Of T)
One of the things that can burn you when using an IoC container is that if your objectgraph is big than it will take some time to instantiate everything at the startup of your application. But why would we not use Lazy(Of T) to prevent this? After all that is what Lazy(Of T) is for. To lazy initialize your objects.
Differences between Autofac and Structuremap with VB.Net
Time to try Autofac and see how it differs from structuremap.
NSubstituteAutoMocker for StructureMap
Introduction
I use the Automocking feature of StructureMap quite a lot. But they only have support for Rhino Mocks and Moq. Now there is a new mocking framework, NSubstitute, and I would like to use that. But for that I needed an AutoMocker to take some of th...
Git, TortoiseGit, Github and the rest
Introduction
This weekend I felt the need to make myself an NSubstitute Automocker for StructureMap. The first thing to do was to download the sourcecode for StructureMap and NSubstitute. Both are being hosted on GitHub. because I wanted to fork StructureMap and add the Automocker to it I had to create an account on github,...
StructureMap and Generics
Introduction
I don't need to tell you that IoC and an IoC-container is something you should use. My container of preference is StructureMap by Jeremy D. Miller.
One of the more interesting things to map are generic interfaces and their implementations. Generics can save us a lot of typing and make life a lot easier. Less code usually means less bugs. But there are also 2 different ways in which generic interfaces can be implemented - one is open a...
Twisting My Arm - How I was Persuaded to Change StructureMap Versions
I've been using StructureMap 2.5x for some time, and I have been quite pleased with it. I'd read a bit about 2.6x, and the improvements to the registry DSL seemed cool but not quite cool enough to give me the motivation I needed to make upgrading the version used in my project a priority.
A week or two ago, I found what proved to be my compelling reason. It's a method called
StructureMap, Windows Forms, User controls and BuildUp
For my usercontrols I tend to use the StructureMap BuildUp feature. I will leave it to the big man himself to introduce you to this feature.
I use property injection in this case because the designer doesn't like usercontrols that have constructors that are not empty, since it will try to execute the code in that constructor. So we revert to property injection and the BuildUp feature....
Windows forms and structuremap the single instance form
So we have a windows forms application and some of these forms can only be used once. Like for instance a dashboard. Everytime we show the form we just want it to either show a new one, if it's the first time opened, or we want to show the one that already exists. In essence, this would be good case for a singleton pattern. But the singleton pattern is evil. Why is it evil? Because it is hard to unittest. And it makes us do something that we really don't want to.
So having established that we got to find a better solution for this poblem. And we have. It's called StructureMap. Stru...
A Recipe for Success: The Command Pattern, StructureMap and a dash of Generics
So you have lots of forms in your winforms application and you have to open them from several places/forms. But you don't want to repeat yourself all the time. And you like to keep things centralized. You also want it to be flexible, if possible and easily extendable/extensible/extendingable, uhm, be able to extend it in an easy manner. I think this is a typical case for the command pattern. So let's start with that.
Warning! what follows is a lot of code. So this will be a long post. But you can skip all the parts you don't like. Not that you will.
Let's start by creating a...
Using the structuremap Automocker
I was not really convinced in the past that I should use the Structuremap Automocker for any of my tests. I don't like using the container in my tests it makes them way to dependent on something not really needed to run the test. Of course I test to see…
:: Next >>

LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.