Questions tagged [dependency-resolver]
71 questions
0
votes
0 answers
Access HttpConfiguration.DependencyResolver in validation attribute
I have a web api application with Autofac. For the input insert models I need to use validation attributes for the properties that indicate related entities.
public class Comment
{
[Required]
[ExistentBookValidationAttribute]
…

Isadora
- 423
- 1
- 5
- 12
0
votes
1 answer
How would one write a resolve.alias function for gulp?
I'm using Gulp and Tape to run my test suite instead of Webpack and Tape. The reason is for speed and simplicity. Gulp functional task approach instead of testing while bundling.
Now, in order for it to work I need to resolve a file path for an…

MightyMight
- 109
- 1
- 10
0
votes
1 answer
No parameterless constructor defined for this object with Dependency Resolver
I'm currently following "Dependancy Injection on asp net mvc 5 tutorial" in youtube. https://www.youtube.com/watch?v=27DQn6kZDFM
I follow as he said but I'm having this error.
No parameterless constructor defined for this object.
My Controller is…

M.P.K Dilshan
- 3
- 3
0
votes
1 answer
AngularJS UI-Router v1.0: getting state name during resolving
I am migrating from UI-Router v0.4.x to v1.0 and I'm having an issue. Consider the following piece of code.
myApp
.component('myComponent', {
bindings: {
resolveBinding: '<'
},
controller: class…

Maurits Moeys
- 1,116
- 1
- 12
- 22
0
votes
1 answer
access $rootScope in resolve and root index.html file
Two things -
I have a vendor script in the head of my index.html to which I would like to pass an environment specific variable.
I have attached the…

Kraken
- 5,043
- 3
- 25
- 46
0
votes
1 answer
Difference between BuildUp and Resolve
I am playing around with Unity Library, as at my workplace it is highly used, so wanted to understand its different behaviours.
I am confused about BuildUp and Resolve because they seem to do same thing so i am not getting when it is suitable to use…

Ehsan Sajjad
- 61,834
- 16
- 105
- 160
0
votes
1 answer
Autofac DependencyResolver of same service with 2 different services
I have one service with two different components
I want to resolve both. I am trying in this way
var…

Simone
- 2,304
- 6
- 30
- 79
0
votes
1 answer
Lost scope using DependencyResolver in another class library, using Castle Windsor and FluentNhibernate and NHibernate
In my WCF project I register my interface using Castle Windsor in the global.asax:
Component.For()
.ImplementedBy()
.LifestylePerWcfOperation(),
Then later on in the same file I…

User101
- 748
- 2
- 10
- 29
0
votes
0 answers
Using Ivy as dependency resolver in Grails
I'm having a few problems while trying to use ivy as dependency resolver.
I have the following line in my BuildConfig:
grails.project.dependency.resolver = "ivy"
And SpringFramework and JUnit dependencies were not being resolved at all.
I had to…

Bianca Rosa
- 197
- 1
- 3
- 10
0
votes
1 answer
How can I add a Dependency that can be used as type parameter 'TImpl' for Castle Windsor?
I was getting this runtime exception with a particular URL:
"Missing dependency. Component NRBQ.Web.Controllers.DeliveryController has a dependency on SeaStore.Data.Legacy.Interfaces.INRBQDeliveryRepository, which could not be resolved. Make sure…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
-2
votes
1 answer
How to resolve volley library in androidx?
Volley library is not being resolved. I have checked android jetpack, but the search was futile. Could you please help me resolve this dependency? Has someone recently built a project using volley?

Sejal Gupta
- 11