Top "Structuremap" questions

StructureMap is a Dependency Injection / Inversion of Control tool for .NET licensed under Apache 2.

How to configure ASP.NET Identity ApplicationUserManager with StructureMap

I am using asp.net identity in my project and using structuremap as DI framework. the problem is when i …

asp.net-mvc dependency-injection structuremap asp.net-identity asp.net-identity-2
How to configure Web API 2 and Structure Map

I've trawled through multiple blogs etc trying to find out how to configure StructureMap with Web API 2 and none of …

asp.net-web-api structuremap asp.net-web-api2
WebAPI + APIController with structureMap

Im trying to use StructureMap to initialize my ValuesController that derivate from ApiController but i'm getting an exception that says: …

.net asp.net-web-api structuremap
StructureMap singleton usage (A class implementing two interface)

public interface IInterface1 { } public interface IInterface2 { } public class MyClass : IInterface1, IInterface2 { } ... ObjectFactory.Initialize(x => { x.For<IInterface1>().…

c# singleton structuremap
ASP.NET MVC: HTTPContext and Dependency Injection

Currently I have an ActionFilter that gets the current users name from HttpContext and passes it into the action which …

asp.net-mvc dependency-injection structuremap httpcontext
How to define a default constructor by code using StructureMap?

I can't figure out how to define the default constructor (when it exists overloads) for a type in StructureMap (version 2.5) …

c# inversion-of-control structuremap
WebActivator.PreApplicationStartMethod does not work

[assembly: WebActivator.PreApplicationStartMethod(typeof(MyApp.App_Start.StructureMapMvc), "Start")] namespace MyApp.App_Start { public static class StructureMapMvc { public static void …

c# asp.net-mvc-4 structuremap
How to register All types of an interface and get instance of them in unity?

How unity can get all instances of an interface and then access them? Code pieces are taken from here : Fail-Tracker …

c# unity-container structuremap
Automatically resolve Interface<T> to Implementation<T> in StructureMap (differ only by generic type T)

I have an interface (IRepository<T>) that is currently being extended for each specific repository, ie: IUserRepository : IRepository&…

c# asp.net generics structuremap