Questions tagged [dependency-resolver]
71 questions
1
vote
1 answer
List all missing Autofac registrations for dependency resolver DefaultConstructorFinder
Is there a way to list all missing registrations at once, when Autofac tries to resolve constructor parameters through dependency resolver? Or is the only way to go through one at a time..
Take this as an example:
public…

Bogmag
- 49
- 7
1
vote
1 answer
Unity resolving generic event handlers
I'm using Unity to register all my domain event handlers like such :
public static void RegisterTypes(IUnityContainer container)
{
container.RegisterType, ProductCreatedHandler>(new…

MrDeveloper
- 1,041
- 12
- 35
1
vote
1 answer
LightInject IoC container resolve type by a custom method?
Is it possible in LightInject IoC to resolve a type based on some custom method?
eg the resolver would call a method like this
public interface IMyType {}
public class MyEvenType : IMyType {}
public class MyOddType : IMyType {}
public static int…

JK.
- 21,477
- 35
- 135
- 214
1
vote
1 answer
Commands can not be solved with Autofac when stored in a List
If have the code below, implementing the command pattern. I want to store several commands in a list and afterwards pick them from the list, resolve a commandhandler and finally execute the command.
When implementing this I ran into the problem,…

Daniel Lehmann
- 67
- 1
- 7
1
vote
1 answer
When does one want to use a IDependencyResolver over a IModelBinder?
Upon the creation of a new item, when posting information from a form back to the controller, it says that no parameter-less constructor could be found. That is expected since the view model used as the model of the view depends on a domain model…

Will Marcouiller
- 23,773
- 22
- 96
- 162
1
vote
1 answer
Does Castle Windsor keep a reference of resolved object with lifestyle transient?
If castle keep a reference to that object, where can i access to that?
There is a list of that reference somewhere inside the container?
I'm using Castle Windsor 3.3.0

abrfra
- 634
- 2
- 6
- 24
1
vote
1 answer
Using Arquillian Shrinkwrap Resolver Maven reading dependencies from the pom.xml
I am trying to use the ShrinkWrap Dependency Resolver to add libraries to my ShrinkWrap Archive to deploy it to the server for Arquillian Tests.
I am using the following pom.xml:

Malclam
- 43
- 2
- 7
1
vote
2 answers
Multi-tenant application with MVC 3 and DI
I've got an MVC application split into a few areas:
+ Root
+ -- Areas
--+ US
+ -- USCodeController : XXXCodeBaseController
--+ UK
-- UKCodeController : XXXCodeBaseController
--+ (Other countries pending)
+ -- Controllers
--+…

Dominic Zukiewicz
- 8,258
- 8
- 43
- 61
1
vote
1 answer
Autofac dependency resolver passes the same value for parameters when resolving the service
I am using Autofac for IoC in ASP .Net MVC 4 app.
I am not able to figure out why the dependency resolver is passing the same value for different parameters when resolving a dependency.
Here is how I am registering:
private void…

Moon
- 33,439
- 20
- 81
- 132
0
votes
1 answer
Here is my code, I am follwing a tutorial on making a weather app but I am getting errors while syncing with gradle
Here are the dependencies I used:
dependencies {
implementation ("androidx.core:core-ktx:1.10.1")
implementation ("androidx.appcompat:appcompat:1.6.1")
implementation ("com.google.android.material:material:1.9.0")
implementation…
0
votes
0 answers
Duplicate class on jetified-guava-31.1-android.jar and jetified-listenablefuture-1.0.jar
I am Getting duplicate classes on Android Unity build.while the resolver run succesfully. Error detailed are as follow.
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit…
0
votes
2 answers
InvalidOperationException: Unable to resolve service for type "" while attempting to activate dotnet core 7
I try add
using SciEn.Repo.Contracts;
using SciEn.Repo.IRepository;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddSingleton();
var…

Ariel
- 1
0
votes
1 answer
maven-resolver-ant with gcloud artifact registry
I have strange problem
I want to use maven-resolver-ant to resolve dependencies in old project that builds with ant. so I ve created simple pom and for start I've set single jar dependency - this dependency is in my private gcloud artifact registry.…

Paweł Kamiński
- 27
- 3
0
votes
0 answers
How to have TypeScript resolve a module to a different name?
Is there any way to make TypeScript resolve modules to a different name?
For example, resolving a package named our-import-generic to our-import-react-native?
TypeScript seems to insist that the imported module's name matches exactly, which can't…

Slbox
- 10,957
- 15
- 54
- 106
0
votes
0 answers
pip: constraint package to the latest version
I want to constraint some packages to be explicitly the latest available version so that the conflict resolver doesn't downgrade them ever. In pseudocode: pip install -U pip==latest.

HappyFace
- 3,439
- 2
- 24
- 43