structuremap Questions

1

I pretty New at IOC and web-api 2, but have got StructureMap to work on my own Controllers in web-api 2. What I don't have managed is to use StructureMap on the AccountController using Individual A...
Leger asked 30/5, 2014 at 20:5

0

We are using StructureMap 3.1.6.186 and are running into a problem with overriding a particular plugin. In our case, we have a console application which we are deploying to a remote server. The Con...
Bravissimo asked 17/2, 2016 at 14:21

4

Solved

Most of the examples I've found for Automapper use the static Mapper object for managing type mappings. For my project, I need to inject an IMapperEngine as part of object construction using Struct...
Organo asked 26/9, 2012 at 15:11

2

Solved

Im trying to use StructureMap to initialize my ValuesController that derivate from ApiController but i'm getting an exception that says: The IControllerFactory '...CustomControllerFactory' did not...
Olibanum asked 19/9, 2013 at 13:59

5

Solved

[assembly: WebActivator.PreApplicationStartMethod(typeof(MyApp.App_Start.StructureMapMvc), "Start")] namespace MyApp.App_Start { public static class StructureMapMvc { public static void Start()...
Hortense asked 2/1, 2013 at 0:12

2

Solved

I'm trying to use the MoqAutoMocker class that comes with StructureMap and I can't find any examples of how it should be used. All I have to go on is the example at the StructureMap site that uses ...
Poucher asked 3/6, 2009 at 14:28

2

Solved

I have been looking around for a non Parameter injection option for the WebApi attributes. My question is simply whether this is actually possible using Structuremap? I have been googling around ...

3

Solved

I have an interface in my project that 2 classes implement it: public interface IService { int DoWork(); } public class Service1:IService { public int DoWork() { return 1; } } public class...

1

Solved

I am just getting my feet wet with MVC 6. I installed VS 2015 and with the default ASP.NET 5 preview MVC Web Application template everything runs fine under local IIS. I then tried to switch out th...

1

Solved

I try it decorate IProjectService but I can't find documentation for struturemap For<IProjectService>().Use<ProjectServiceLogDecorator>(); For<IProjectService>().Use<ProjectSe...
Bemoan asked 30/7, 2015 at 8:9

1

Solved

I'm curious as to the difference between these two methods. I'm implementing a decorator pattern with open generics and whether I use AddAllTypesOf or ConnectImplementationsToTypesClosing it doesn'...

1

Solved

I have a Web API project which uses StructureMap for its DI. It's been working fine for awhile, but I'm having some issues with the Web API help pages (Microsoft.AspNet.WebApi.HelpPage) where Inval...
Diesel asked 9/7, 2015 at 13:10

1

Solved

I implemented a interface injection using StructureMap as describe below. ObjectFactory.Initialize(x => { x.For<*IRepository*>().Use<*SQLRepository*>(); }); But it is giving a war...
Proletariat asked 9/6, 2015 at 4:39

2

Solved

I'm trying to inject an instance of ISession into a custom AutoMapper ValueResolver. Here's the resolver public class ContactTypeResolver : ValueResolver<Common.Models.ContactType, Models.Co...

3

Solved

The definition of my interface is as follows: public interface IApplicationSettings { string LoggerName { get; } string NumberOfResultsPerPage { get; } string EmailAddress { get; } string Cred...
Wilinski asked 10/4, 2015 at 4:37

1

Solved

My solution has 4 projects in it UI Infrastructure Entities Tests All of the code-first database setup and the structuremap setup sits within the infrastructure project. The UI is ASP.NET MVC5....
Monkey asked 6/4, 2015 at 11:21

3

Solved

I followed the instructions here to add the webApi.HelpPage area and views to an existing project, which uses structureMap - but when accessing the /Help url: StructureMap Exception Code: 202 No D...

2

Solved

I'm creating an ASP.NET Web API 2.1 site and as I want to inject dependencies directly into the controllers, I've created my own implementation of IDependencyResolver so that StructureMap will hand...
Czarevna asked 20/2, 2014 at 21:15

2

Solved

http://docs.structuremap.net/ seems to have very old examples that use deprecated members. Is there a place where I can find up to date StructureMap doco ?
Shewmaker asked 15/1, 2013 at 3:56

1

Solved

I have an MVC 5 project that has been modified to use int as the primary key for identity as shown in this guide I then enabled email confirmation as described in this guide Everything worked fi...

1

Solved

I have a bunch of services that implement various interfaces. eg, IAlbumService, IMediaService etc. I want to log calls to each method on these interfaces. How do I do this using StructureMap? I ...
Endoscope asked 23/5, 2009 at 20:12

1

Solved

Ok, my previous question/setup had too many variables, so I'm stripping this down to it's bare bones components. Given the code below using StructureMap3... //IoC setup For<HttpContextBase>...

1

Solved

I am currently trying to reconfigure StructureMap in our application after upgrading from an old version (2.6) that was never correctly implemented in the first place. I am new to using DI Contain...
Vitovitoria asked 7/10, 2014 at 16:33

3

I have a registry class like this: public class StructureMapRegistry : Registry { public StructureMapRegistry() { For<IDateTimeProvider>().Singleton().Use<DateTimeProviderReturningDate...
Illyrian asked 18/3, 2010 at 11:24

1

Solved

i recently have been using Nancy fx and i'm in love with it, but when i try to make a structuremap ioc like the documentation page suggested i get the error Field not found: 'Nancy.Bootstrapper.Na...
Fant asked 19/8, 2014 at 1:34

© 2022 - 2024 — McMap. All rights reserved.