structuremap Questions
6
Solved
I followed this up to the xml doc part in order to create Swagger documentation using Swashbuckle. It should allow me to view the endpoints via (in my case):
http://localhost:51854/swagger/ui/inde...
Guatemala asked 4/5, 2016 at 15:58
10
Solved
Is there any way to auto-configue Automapper to scan for all profiles in namespace/assembly? What I would like to do is to add mapping profiles to AutoMapper from given assembly filtered by given i...
Waldman asked 16/4, 2010 at 8:34
9
Solved
I am new to StructureMap. I have downloaded and am
using version 2.6.1.0. I keep getting the below
error:
StructureMap Exception Code: 202 No
Default Instance defined for
PluginFamily
Compa...
Fascicule asked 26/5, 2010 at 6:19
2
Solved
So I've build a WebAPI from scratch, including some best practices that I've found online such as Dependency Injection and Domain<->DTO mapping using auto mapper etc.
My API Controllers now l...
Youngran asked 18/3, 2016 at 0:54
3
Solved
I'm using StructureMap for my DI. Imagine I have a class that takes 1 argument like:
public class ProductProvider : IProductProvider
{
public ProductProvider(string connectionString)
{
....
}...
Antabuse asked 13/5, 2010 at 2:17
1
Solved
In StructureMap we can proxy TInterface and TConcreteImpl with TProxy this this:
ConfigurationExpression config = ...
config.For<TInterface>().DecorateAllWith<TProxy>();
config.For&l...
Gaunt asked 17/7, 2019 at 14:32
2
Solved
I Use Automapper 5.2.0 In My Project. When I Use ProjectTo() In Code Get This Error:
Mapper not initialized. Call Initialize with Appropriate configuration. If you are trying to use mapper insta...
Cynde asked 31/1, 2017 at 15:35
1
Solved
I am working on a project which uses a set of libraries from some other developer which uses structuremap as the IoC container. [I have the codebase with me]
The application in which we are incorp...
Appendicectomy asked 22/5, 2018 at 18:30
1
Solved
There are lots of articles talking about how to use Structure Map with ASP.NET Core, but not very many talking about console applications or windows services. The default behavior in ASP.Net Core i...
Averyaveryl asked 4/12, 2017 at 19:7
1
I'm trying to set up a solution in Visual Studio that has all of the EF Core files in one project (Infrastructure), separate from my ASP.NET Core web project. Further, I want to prevent developers ...
Laryngoscope asked 27/10, 2017 at 15:43
3
Solved
I'm using structuremap with hangfire on asp.net core, no error on application but hangfire not process queue/schedule task even though data already on database.
Here my snippet configuration
publi...
Martines asked 29/3, 2017 at 13:6
4
Solved
I've used StructureMap in MVC2/3 many times without any concern, but I guess handling IoC is different in MVC4.
When i used StructureMap for handling IoC in MVC4 I get the following exception.:
No...
Nought asked 4/3, 2012 at 18:11
4
Solved
I have a service class with the following ctor:
public class (IMessageService emailService, IMessageService smsService)
{ ... }
and two implementations of IMessageService (email and sms). How do...
Weep asked 19/2, 2015 at 9:12
0
At the moment this is the way I wire up IMapper instance of Automapper with StructureMap.
public class DefaultRegistry : Registry
{
public DefaultRegistry()
{
Scan(o =>
{
o.AddAllTypesOf<...
Goodhen asked 26/1, 2017 at 10:10
3
Solved
I've got the simplest kind of circular dependency in structuremap - class A relies on class B in its constructor, and class B relies on class A in its constructor. To break the dependency, I made c...
Chuipek asked 6/5, 2010 at 15:30
1
Solved
I'm having a very weird issue with StructureMap.MVC5
I created a brand new MVC5 project in Visual Studio (default options for an ASP.net MVC project were left selected.)
I then installed structur...
Elisabetta asked 4/6, 2015 at 10:31
1
I am trying to understand how to use Dependency Injection with Dapper (IDbConnection) and still being able to use built in dispose.
I have found a couple of articles on the web but non that I thin...
Annikaanniken asked 27/10, 2016 at 19:9
3
I am using Structuremap as my Dependency Resolver. I am trying to implement Container Per Request Pattern on my Global.asax.cs file.
public IContainer Container
{
get
{
return (IContainer)Htt...
Roderich asked 29/9, 2014 at 8:24
6
Assuming there is an ASP.NET MVC application that uses Entity Framework 6 with a code-first approach and StructureMap as IoC.
It also uses the Unit Of Work pattern.
Domain Class:
public class Produ...
Hitormiss asked 8/3, 2014 at 10:13
3
Solved
I've got an API application that uses multiple database shards, with StructureMap for dependency injection. One of the required headers in each API call is a ShardKey, which tells me which database...
Coactive asked 4/8, 2016 at 18:56
2
Solved
I am getting this error in one of my ASP.NET 4.5 MVC application on my local machine. Other applications setup with ASP.NET 4.5 and using StructureMap work fine.
Any help/solution on this would ...
Dincolo asked 15/5, 2014 at 15:53
3
Solved
I'm trying to solve a IoC problem, that seemed easy at first, but turned out to be a pain in the ass:-P
I have a heavy weight main class, which must be initialized only once, so it's marked as Sin...
Mouflon asked 27/3, 2016 at 11:41
2
Solved
I am trying to set up structure map ver 3.0.5.0 with Web API 2.
I have followed this implementation: Configuring dependency injection with ASP.NET Web API 2.1
However, I am getting this error whe...
Entomophagous asked 29/7, 2014 at 18:36
1
I am using asp.net identity in my project and using structuremap as DI framework. the problem is when i use constructor injection then ApplicationUserManager not configured all of it's members e.g ...
Zaller asked 17/9, 2014 at 19:6
2
Solved
I've trawled through multiple blogs etc trying to find out how to configure StructureMap with Web API 2 and none of the implementations worked for me. The confusion seems to be around the different...
Eldin asked 5/7, 2014 at 21:4
1 Next >
© 2022 - 2024 — McMap. All rights reserved.