You cannot post messages because only members can post, and you are not currently a member.
Description:
StructureMap Project Users Mailing List
|
|
|
Initialize Object Properties
|
| |
Hello, I am injecting in my services a global Settings interface, as Singleton, using StructureMap: public interface ISettings { LoggerSettings Logger { get; } ...public class LoggerSettings { public String Levels { get { return ConfigurationManager.AppSettin gs["Logger.Levels"]; } } public const String Report = "t...@xyz.com";... more »
|
|
Restrict Injection by Namespace. Is this possible?
|
| |
Hello, I have the following configuration: For<ITranslatorProvider>().Sin gleton().Use<TranslatorProvide rA>(); I have 3 translator providers: TranslatorProviderA, B and C. Each one should be used under certain namespaces. Project.Services > Use Provider A Project.Site > User Provider B ... Is this possible?... more »
|
|
Getting started with structuremap
|
| |
Hello guys. I've started using structuremap and I've got a problem regarding the use of the HttpContextScoped lifecycle. I've got the following: amespace Dri.employees.Web.Configuratio n { public class EmployeeRegistry : Registry { public EmployeeRegistry() { For<IBus>() .HttpContextScoped()... more »
|
|
'AddAllTypesOf' not adding assembly to ObjectFactory?
|
| |
I am trying to build a console app that loads an assembly at runtime which implements an interface. The point is to create a .dll with instructions that can be changed by changing the .dll. My VS2012 solution exists of 3 projects: the interface, a library which implements it, and a console app. (Because of this, all 3 have their own... more »
|
|
WhatDoIHave says I have it. ObjectFactory says I don't
|
| |
Jeez louise, I'm trying to retro fit a plague ridden legacy app with SM and running into all sorts of strangeness. So I apologize for all the strange questions. so I have this code var whatDoIHave = ObjectFactory.Container.WhatDo IHave(); var validator = ObjectFactory.GetInstance<IVal idator<ProfileActivityElement> >();... more »
|
|
explicit declaration does not override scan
|
| |
I have a registry that scans a couple assemblies. However, for some of those interfaces found it needs to use a specific class, not the one that implements the convention IMyObject -> MyObject. so after the scan I say For().Use(); however in the AssertConfigurationIsValid Method it blows up saying bla bla... more »
|
|
|