ninject Questions

1

Solved

I want to create instance of PerRequestResourceProvider using ninject InRequestScope: public class PerRequestResourceProvider: IPerRequestResourceProvider { priavte readonly _perRequestResorceIns...
Hispanicism asked 24/7, 2014 at 7:55

1

Solved

I use and fancy Ninject alot. I wonder why there is no "BasicKernel" in Ninject.Portable? Is implementing IKernel require any call that PCLs don't contain? I'm talking about simple scenario (abo...
Earthy asked 15/7, 2014 at 11:35

2

Solved

I am trying to use Ninject to inject an EventLogger instance into a custom ExceptionFilterAttribute. Whenever I run the code, the EventLogger instance is null. I have implemented an IFilterProvid...
Corridor asked 6/2, 2014 at 21:12

1

Solved

Well, I was going to name this and a question of context, but apparently the word question isn't allowed in titles. Anyway, here's the issue: I use IErrorHandler in my WCF services in order to pro...
Cucullate asked 10/7, 2014 at 20:20

2

Solved

I'm using automapper library to convert my Model into my ViewModel. For each Model, I create profile which inside i add my maps using CreateMap. I want to use custom ValueResolver in which it will...
Nole asked 30/6, 2014 at 15:53

1

Solved

I am building an application using Ninject (MVC5 + WEBAPI). And having some issues figuring out which ones of the many answers explain the most up to date solution to integrate Ninject and WebApi. ...
Monologue asked 30/6, 2014 at 14:53

2

I have ported my Web Api application to Web Api 2 and installed ninject web api pacckage. But now I am getting an error: Error activating ModelValidatorProvider using binding from ModelValidatorPr...
Ashantiashbaugh asked 6/5, 2014 at 20:58

1

Solved

If you install the nuget Ninject package for mvc, it puts a NinjectWebCommon.cs file in the App_Start folder. I understand 99% of the stuff in this file apart from this line: kernel.Bind<Func...
Orjonikidze asked 11/6, 2014 at 16:4

2

Solved

I'm using Ninject for dependency injecting in an ASP.Net MVC application (This is my first project using Ninject or DI at all for that matter). I'm opting to using the Model-View-ViewModel pattern...
Shandeigh asked 21/5, 2013 at 20:52

1

Using Web API 2 and OWIN hosting with Ninject. I would like to inject the current IOwinContext into certain services (so I can get at the Request to get the principal to do some data filtering). ...
Misti asked 6/5, 2014 at 17:37

1

I don't know fully how Ninject works that's why I'am asking this question here to figure out what's wrong. If i create a empty constructor in ClaimsSecurityService it gets hit. This is my error: ...
Dasilva asked 3/6, 2014 at 21:10

2

I've been trying to achieve something with Ninject (without a great understanding of the library) and have realized it may not be possible to do what I want. I've got one of our own projects that ...
Beth asked 2/6, 2014 at 8:8

1

Solved

How do you inject UserManager and UserStore into a controller? Ninject bindings are: kernel.Bind<ApplicationDbContext>().ToSelf().InRequestScope(); kernel.Bind(typeof(UserManager<>)).T...
Exscind asked 2/6, 2014 at 9:55

2

Solved

Following the advice I have been given in this thread [Ninject UOW pattern, new ConnectionString after user is authenticated I now understand that I should not use the following line... var appli...

2

Ninject has the functionality of self binding like Bind<Samurai>().ToSelf(); I read about this but I don't get the importance or how this can be useful. Any comments are appreciated.
Dennison asked 9/5, 2014 at 7:40

2

In earlier versions of Ninject.Extensions.Conventions, it was pretty easy to scan a directory for assemblies, filter classes by interface and then load all containing ninject modules. kernel.Scan(...
Shipment asked 13/5, 2014 at 10:5

1

Solved

Good morning all, I noticed strange behavior of Ninject (at least I think that it is the problem) in my project. The situation is the following. I use Ninject.3.0.2-unstable-9028 Ninject.Extensio...
Serles asked 18/2, 2014 at 23:14

2

Solved

If you request an unbound object from NInject, then the default behaviour is (if a suitable constructor is available) appears to be to create an instance of the appropriate object. I'd like to dis...
Ommatophore asked 28/1, 2013 at 15:30

2

I'm trying to setup an 'Authorization' Filter on an Action, creating my own ActionFilterAttribute where I do a database lookup to determine if a user has access to a certain resource. On my class ...
Obsolesce asked 22/4, 2011 at 18:23

1

Solved

It is a desktop application which is obliged to impersonate the current user when accessing the underlying data source. How can I tell Ninject not to bind the dependency until the property of a pa...

1

Solved

To make a long story short, the application that I am currently writing ought to impersonate the current logged in user. It's an application to manage information inquiries. Because of NHibernate...

3

Solved

I'm having some difficulty using Ninject's InSingletonScope binding with Web Api RC. No matter how I create my binding, it looks like perhaps Web Api is handling scope/lifetime instead of Ninject. ...
Dipstick asked 6/7, 2012 at 6:21

3

Solved

I've just installed the new Ninject.MVC3 from NuGet and trying to make it work in my asp.net mvc 3 app, however I get this weird error now and then when surfing my site: [InvalidOperationException...
Changchun asked 27/2, 2011 at 17:20

2

Solved

Having trouble getting the value of a ConstructorArgument parameter passed to kernel.Get(). I want to use the parameter's value to determine which of two string values will be passed into the con...

1

Solved

I use ninject and quartz.net in my application and I want to inject job with ninject,But I do not know how to ,because all I know is that jobdetail is created by class of Jobimpl instead of an inst...
Staceystaci asked 2/4, 2014 at 12:1

© 2022 - 2024 — McMap. All rights reserved.