ninject Questions

2

Solved

I’m in the process of creating a new web site using ASP.net MVC 5, and it’s also going to have an API using Web API 2. In the past I’ve used Ninject for handling Dependency Injection, but it always...
Thier asked 20/11, 2013 at 11:27

2

Solved

I'm lost with Ninject in WPF. I'm initializing it in App.xaml but the ITest property in MainWindow.xaml (even with the InjectAttribute) is not getting resolved and remains null. public partial c...
Lozengy asked 17/11, 2012 at 15:49

1

Solved

I'm trying to inject a service into a HttpHandler i wrote. But all I'm getting is a Service with a null value. I have created a small example to illustrate my problem using a normal asp.net websit...
Laxation asked 13/11, 2013 at 21:28

4

Solved

Just trying to still get my head around IOC principles. Q1: Static Methods - Should util classes with static helper methods be wired up with IOC? For example if I have a HttpUtils class with a nu...
Aretina asked 26/3, 2010 at 20:46

1

Solved

I am looking at a certain scenario in an application that i am currently working on I want an Admin officer to be able to change system wide settings in an application. public class ApplicationS...
Rival asked 25/10, 2013 at 10:5

2

I'm introducing Ninject into a large mess of a existing project. I want to write a diagnostic test to make sure that all of the classes Ninject will end up creating can actually BE resolved by Ninj...
Bulkhead asked 12/11, 2010 at 22:50

1

Solved

Sorry if this comes across as a stupid question im just not sure how to get started writing some unit tests. I have a solution containing an api and a unit test project. The api has a repository/i...
Healall asked 21/10, 2013 at 9:21

2

Following the guide here, but instead of StructureMap attempting to use Ninject. It throws up the "MissingMethodException: Cannot create an instance of an interface" error any time I attempt to in...
Gammon asked 8/4, 2013 at 14:28

1

Solved

I am new in Ninject and I need some help to move on. I have a solution that consists of web.form (presentation) and various other class libraries projects. In web.form application inside NinjectW...
Fourflush asked 30/9, 2013 at 10:6

1

Solved

I have a method that uses a repository (userRepo): public override Task<IdentityResult> CreateLocalUserAsync(IUser user, string password, CancellationToken cancellationToken) { var task =...
Braze asked 1/10, 2013 at 8:17

3

Solved

I am trying to find a way to use Ninject to inject constructor dependencies into filters. I am finding many articles describing property injection which is now advised against, but the remainder of...
Nudity asked 25/9, 2013 at 20:24

1

Solved

I have a solution called MvcContacts with an MVC 4 project named MvcContacts and a unit testing project named MvcContacts.Test (created automatically when I checked the "enable unit testing" box in...
Interior asked 13/9, 2013 at 17:35

1

Solved

Is it possible and/or a good idea to use Ninject (or any other IoC container, for that matter) to create a default binding for situations in which an appropriate implementation does not exist, and...

1

Solved

I'm current writing a Windows Service which connects to an existing service layer using Entity Framework (DbContext), and Ninject to inject the Respositories and DbContext instance. This is pretty ...

3

Solved

I have a web service that's going to do things with some data being passed in (specifically InfoPath xml from a SharePoint doc library). I'm currently using Ninject to handle what form data "strate...
Hyperthyroidism asked 5/8, 2013 at 22:3

1

Setup: ASP.NET MVC3 Ninject v2.2.1.4 Ninject v3.0.0.15 Ninject.MVC3 v3.0.0.6 Ninject.Web.Common v3.0.0.7 Using NuGet, my UnitTest project references Ninject v2.2.1.4 My Web Project referenc...
Decembrist asked 17/5, 2012 at 14:35

1

I'm new to automatic dependency injection and trying to cleanly implement Ninject with an MVC4 application. Everything is functional but the OCD in me is wondering how an application will scale in ...

2

Solved

I have a MVC3 application that I would like to port to MVC4. I am using Ninject for dependency injection. Using Nuget, I added "Ninject" to my project and created a controller factory as shown belo...
Homiletics asked 13/9, 2012 at 14:23

3

Solved

My asp.net WebApi project comprises of multiple assemblies for Services, Core and Data Access. In an attempt to use Ninject as my DI container in the project, I added Ninject.Web.Common package fro...
Burget asked 12/11, 2012 at 16:12

1

Solved

I'm really confused about small, partial, one-file examples where there's a Ninject kernel everywhere without showing how to really get to that kernel in the application. (1) Should we instantiate...
Adamec asked 29/7, 2013 at 8:30

2

Solved

I have an MVC4 project in which I am using Ninject as the DI Framework. The problem I am having is trying to split my DI bindings from my implementation as i do not want my main web project to refe...
Monitor asked 16/7, 2013 at 9:59

3

Solved

I am currently building my first MVC 3 application, using EF Code First, SQL CE and Ninject. I have read a lot about using Repositories, Unit of Work and Service Layers. I think I have got the basi...
Escheat asked 13/9, 2011 at 21:48

3

Solved

I seem to be having an issue, the application we're using uses a Ninject kernel, and contains a particular configuration that's gathered with contents of the WCF call (username, token...). Based o...
Malikamalin asked 9/3, 2012 at 12:58

3

Solved

I use ninject framework. In my code I have a Lazy object. I can create an instance, but when I call the value property I got an exception. private Lazy<IPsoriasisReportUserControl> psorias...
Freestone asked 10/6, 2013 at 9:31

2

Solved

I'm currently using ninject.mvc3 in my asp.net webapi project, and it works fine. I am now trying to bind filter attributes, but BindFilter and BindHttpFilter are missing from IKernel interface whe...
Lard asked 6/10, 2012 at 6:41

© 2022 - 2024 — McMap. All rights reserved.