. Answers to this question are eligible for a +50 reputation bounty. Ma ...
. Answers to this question are eligible for a +50 reputation bounty. Ma ...
During unit tests, I load-up my Unit-of-Work (UOW) instance with mock data. Then, I hand the Unit-of-Work instance to the class-instances that are bei ...
We are using an older version of Structuremap (3.1.9.463). It's been a while since I used structuremap and HttpClients alongside and I wonter how to p ...
I'm struggling with StructureMap. I need to ensure that i get an instance per HttpContextLifecycle but one for each constructor parameter. Our old wor ...
I have following registration of the service: I have a exporter factory to create different exporters. First of all injected StructureMap container ...
I have an old legacy system (more than 10 years) made in MVC 2 with structuremap(2.6.1.0) as DI. We have begun migrating the back with nHibernate (als ...
I am creating sample project based on DDD. I created SharedKernel project where I have my class for DomainEvents and this is class GenericTyp ...
I am using StructureMap 3.1.4.143 in my old code, previously the code was written as below: But now I am upgrading the above code to the StructureM ...
I have ASP.NET Core 3.1 with StructureMap and Mediatr. Previously, when I used default DI container, I would have my child handler trigger twice. Fun ...
I have following class in my project: and use following code to register in structuremap: When I want to use the class, I used following code: ...
I am trying to use an internal plugin (organisation specific) for some task implementation, in order to call the methods through plugin I need to pass ...
Is there an implementation of ISagaDbContextFactory for StructureMap? I've seen an implementation of AutofacSagaDbContextFactory for Autofac, and I wo ...
I have two interfaces: In my handler I want to inject al the services that implement IDataFetcher<T>: I'm currently registering the IDataF ...
I have a bunch of data fetchers which all has the almost same signature. The only thing that differs is the return type. The return type is specified ...
I have a WCF application where it is listening for a message. The EventHandler uses the ServiceClient which uses HttpClient to call another API. The ...
I've configured a class X with ContainerScope in my StructureMap configuration, but for some reason, when the app initially starts up and MassTransit ...
For various reasons we are needing to use Autofac in on of our libraries. We are currently using Structuremap and are having trouble converting the fo ...
I am getting an error when trying to call the controller below using Lamar to resolve the dependencies at runtime. I have tried .AddControllersAsServ ...
I am trying to migrate from StructureMap to Lamar (4.1.0) on the latest dotnet core release (3.1) This project worked before the switch to Lamar, but ...
I am trying to inject the structure map into .net core 3.0 web API but Continuously I am getting the error in my Program.cs class. I haven't found any ...