structuremap Questions
2
I have been searching about the dependency injection and read a few articles.
But still I am unable to find out the difference between MEF and other IoC's.
So, my question is this: In which situati...
Manometer asked 22/3, 2013 at 14:5
1
Solved
I have around 6 WCF services that I want to host in an MVC application, routing requests to /services/foo to WcfFooService and /services/bar to WcfBarService
I can accomplish IoC with StructureMap...
Tellus asked 16/3, 2013 at 8:38
1
I'm trying to build an implementation of the IHttpControllerActivator interface for with with StructureMap, so that I can resolve a dependency of a controller which takes a dependency on the HttpRe...
Davina asked 28/9, 2012 at 20:3
3
Solved
I've found some 2008 benchmark results for testing the performance of several of the top .NET DI/IoC containers here. But I haven't been able to find any updated results. Are there any benchmarks o...
Lollar asked 15/3, 2011 at 17:27
1
Solved
I'm using ServiceStack / StructureMap / Moq. The service makes a call to Session, which is type ServiceStack.CacheAccess.ISession. For unit tests, I created a Mock object using Moq, and added it to...
Paint asked 20/2, 2013 at 15:12
4
Solved
Currently I have an ActionFilter that gets the current users name from HttpContext and passes it into the action which uses it on a service method. eg:
Service.DoSomething(userName);
I now have...
Penetrant asked 18/5, 2009 at 13:20
1
I am having a problem with injecting an instance into structuremap for my tests.
My objects graph looks like this
internal class ConfigurationManager : IConfigurationManager : IManager
{
public ...
Julian asked 30/1, 2011 at 12:6
2
Solved
I am a user of NLog and I am creating my own custom target. This target will use some repositories (using NHibernate) to persist log entries.
Is it possible to inject the required constructor dep...
Marabou asked 16/5, 2011 at 14:16
1
Solved
I am new to DI concept and new to structuremap. I am trying to full fill a scenario where all my interfaces are in AssemblyA and all my implementations are in AssemblyB. I want to use Structuremap ...
Impracticable asked 3/1, 2013 at 15:9
5
Solved
I have some experience in working by Structuremap. And now I'm creating a big and large scale web app (really a social networking site) using ASP.NET MVC 3, Entity Framework 4.1 code-first, S...
Delila asked 25/10, 2011 at 15:17
1
Solved
I saw a code as below in a tutorial of EF code first , MVC and StructureMap to create a Context Per Request pattern:
protected void Application_Start()
{
...
initStructureMap();
}
private...
Palmary asked 10/12, 2012 at 9:41
2
Solved
I have a problem managing the lifetime of open database connections with StructureMap scoped to HttpContext when there are persistent HTTP connections in my ASP.NET MVC application, like SignalR hu...
Maddening asked 8/11, 2012 at 12:10
0
We have a MVC 4 project and using Structure Map as an IoC framework. When we make an async call to the service class that using DbContext it throws an exception:
Value cannot be null.
Parameter na...
Knobby asked 19/11, 2012 at 14:48
1
Solved
StructureMap is configured to inject HttpContext.Current.User when an IPrincipal is requested for any ASP.NET MVC web request, like so:
For<IPrincipal>().Use(x => HttpContext.Current.User...
Autogamy asked 26/10, 2012 at 9:52
4
Solved
I'm still trying to figure things out with StructureMap and one of the issues i'm running into is my Controller Factory class blowing up when a null controller type is passed to it. This only happe...
Bourges asked 29/5, 2009 at 0:44
1
Solved
I am converting an ASP.NET MVC3 project to MVC4. I was trying to find the best approach to work with StructureMap and MVC4. I've found a couple of solution which might work, but haven't tried them ...
Sullen asked 31/8, 2012 at 15:22
2
Does the current version of StructureMap support ASP .Net Web API, MVC 4 and .NET Framework 4.5?
Prophase asked 9/8, 2012 at 17:58
2
Solved
Say I have a source and destination class that is mapped using AutoMapper.
The destination has a logger service injected into the constructor.
However, I don't know how to get the service injected...
Conradconrade asked 9/5, 2011 at 14:59
1
Solved
I am in the process of migrating from StructureMap to Simple Injector in a ASP.NET MVC3 application.
I am using the MVC3 extension for controller DI, but I am running into an issue with trying to ...
Agram asked 23/7, 2012 at 22:0
1
If I use this code in each Repository class then I get SQL profiling to work but I want to move that code from each class into the class where StructureMap handles the DB.
Example of a Repository ...
Carlocarload asked 24/6, 2011 at 9:20
1
Solved
Has Unity, since February of 2011, improved this delegate story to achieve parity with StructureMap?
Chemarin asked 13/6, 2012 at 21:44
1
Solved
When adding the StructureMap-MVC3 package to an ASP.NET MVC application,
an IoC class containing an Initialize method gets added (that gets called by some code in the App_Start folder) containing ...
Pentosan asked 16/5, 2012 at 12:20
1
Solved
Abstract
For the past few months I have been programming a light weight, C# based game engine with API abstraction and entity/component/scripting system. The whole idea of it is to ease the game d...
Worriment asked 25/4, 2012 at 10:7
5
Solved
I'm trying to figure how to config StructureMap for ASP.NET MVC3 I've already using NuGet and I notice that it creates App_Start Folder with a cs file named as StructuremapMVC, so I check it and no...
Ramiroramjet asked 16/3, 2011 at 0:8
2
Solved
Part of this question was already asked here : structuremap Property Injection but the answer was never given.
With StructureMap, is it possible to do Property Injection such that
class SomeCont...
Owen asked 12/2, 2011 at 17:26
© 2022 - 2024 — McMap. All rights reserved.