structuremap Questions
1
Solved
I noticed that when I installed StructureMap from NuGet into my ASP.NET MVC3 project, Dave Ebbo's WebActivator package was also added as a dependency.
WebActivator provides a PreApplicationStartMe...
Swanner asked 24/1, 2012 at 12:55
2
Solved
Last commit was on august 28, 2011
There are 21 open issues
There is no activity since august
I doubt to use it in my new project
What do you think about it?
Magness asked 9/1, 2012 at 8:3
2
I have a situation which seems a bit different from others I've seen. For clarrification, this isn't the normal question eg; something like IAClass maps to AClass etc - that involves using basicall...
Convalescence asked 15/4, 2010 at 11:53
5
Solved
I have an interface (IRepository<T>) that is currently being extended for each specific repository, ie: IUserRepository : IRepository<User>.
Each of these interfaces has corresponding ...
Telegram asked 25/1, 2011 at 1:0
2
Solved
I have a generic interface, that takes in two generic types. I want to decorate all versions returned, but since I don't know the type when calling EnrichWith, it obviously doesn't compile. I've tr...
Augmenter asked 31/10, 2011 at 14:22
3
Solved
NHibernate 3.2/Fluent NHibernate 1.3/StructureMap 2.6.3 -
Trying to follow DDD as an architectural strategy, I typically don't have dependencies on domain entities. However, I'm experimenting righ...
Tomaso asked 5/11, 2011 at 21:15
2
Solved
I am using the Registry DSL example to configure structuremap. But doing this makes all of my registered types available in all layers of my application where I add a refernce to structure map. I d...
Vassily asked 4/11, 2011 at 18:4
3
Solved
Currently I'm trying to understand dependency injection better and I'm using asp.net MVC to work with it. You might see some other related questions from me ;)
Alright, I'll start with an example ...
Bedstead asked 8/10, 2011 at 20:26
3
Solved
I have an interface IGenericRepository<TEntity> where TEntity : IEntity and an implementation GenericRepository<TEntity> where TEntity : Entity.
I'm trying to inject a specific IGeneri...
Jaela asked 14/5, 2010 at 15:35
1
Solved
very new to Structure-Map. trying to figure it out how it works and how can i benefit from it.
i have got this so far..
Global.asax.cs:
IContainer container = new Container(x =>
{
x.For<...
Footlambert asked 30/9, 2011 at 11:52
2
I did my configuration like this:
var container = new Container(x =>
{
x.For<IEngine>().Use<V6Engine>();
x.For<ICar>().Use<HondaCar>();
}
);
Then in my mvc control...
Madelaine asked 15/9, 2011 at 16:37
3
Solved
I am working on an ASP MVC 3 app and I'm writing a custom html helper. It's nothing special or hugely complex, but it will need an instance of an interface from structure map. I know I can simply c...
Ichthyoid asked 6/7, 2011 at 14:50
4
Solved
How can keep all the configuration file code out of my logic code using Settings (ApplicationSettingsBase) and Dependency Injection?
With configuration I mean a customer specific configuration fil...
Stereoscope asked 2/9, 2011 at 20:25
1
Solved
I am using the FluentValidation library to enforce a unique constraint on one of my models:
public class Foo {
// No two Foos can have the same value for Bar
public int Bar { get; set; }
}
publ...
Olenolin asked 17/8, 2011 at 19:28
1
Solved
I'm working on legacy code.
I have different methods of the same class that pass different arguments to the constructor of a dependency. I'm trying to get some basic IoC usage introduced. Right no...
Widener asked 15/8, 2011 at 21:22
3
Solved
I have a class with 2 constructors.
MyClass()
and
MyClass(IMyService service)
How do I tell StructureMap then whenever I do a 'new MyClass()' it should actually call the second constructor and ...
Abirritate asked 9/8, 2011 at 15:3
2
Solved
Does structuremap allow you to do constructor injection in a lazy fashion?
Meaning not creating the object which is injected until it is used?
Cornejo asked 25/7, 2011 at 5:2
2
Solved
I'm starting to work with StructureMap on a windows application project. In working on learning the basics, I found 2 ways to arrange my solution that accomplish the same goal, and I'm wondering if...
Dannie asked 28/7, 2011 at 0:48
2
[OR] How to define a StructureMap life cycle for UoW to be consumed by http requests and quartz jobs
I have this web application which uses SM for IoC. I am using HybridHttpOrThreadLocalScoped sc...
Coly asked 3/7, 2010 at 1:43
2
Solved
I have a class (MyService) that has a static property (MyService.Context) which represents a current context (which is specific to currently logged in user, so it changes).
What i'm trying to achi...
Sasser asked 4/7, 2011 at 5:56
7
Solved
this is probably just a newbie question, but I have the following:
public class FooSettings {}
public class BarSettings {}
public class DohSettings {}
// There might be many more settings types......
Leroi asked 17/6, 2011 at 13:3
1
I am totally new to Structuremap and am confused on how to wire an interface that has multiple implementations.
Lets say I have Controller1 and Controller2. I have Interface1 that is implemented ...
Immunize asked 23/6, 2011 at 19:3
1
Solved
When performing background tasks in a Windows Service I used HybridHttpOrThreadLocalScoped for storing intances of NHibernate ISessions.
Since within a Windows Server there isn't a HTTPContext, I...
Coaming asked 21/6, 2011 at 11:39
2
Solved
My goal is to have one data context (MainDbContext) per HTTP request in ASP.NET MVC and dispose the data context when the request ends.
I'm using the following StructureMap configuration:
public ...
Garpike asked 17/6, 2011 at 19:7
2
Solved
At a high level, how do these dep. injection frameworks work?
I can understand if you always instantiate an object via a custom factory like:
IUser user = DepInjector.Get<User>();
I'm gue...
Folger asked 30/5, 2011 at 17:3
© 2022 - 2024 — McMap. All rights reserved.