ninject Questions
2
Solved
I am in the process of re-writing a WinForms application from scratch (and it has to be WinForms, as much as I want to use WPF and MVVM). Do do this I have chosen to use the MVC pattern and attempt...
Continence asked 1/4, 2016 at 9:17
1
I am a new happy Xamarin developer and unfortunately I got stuck on my first project problem. When I was working with MVC I used to work with Ninject. So, I decided to use this tool as my IoC and D...
Franciscofranciska asked 31/3, 2016 at 21:2
2
Solved
I am trying to figure out how to inject UserManager and SignInManager. I have installed Ninject in my application and I am using it in the following manner:
Please consider this to be a brand new ...
Sanctitude asked 26/3, 2016 at 19:16
1
Solved
I went through the recommended steps to add Ninject to my MVC application. And I added a DbContext argument to my controllers' constructors.
Controller:
public class MyController : BaseController...
Danyel asked 25/3, 2016 at 14:28
2
I am new to Ninject and trying to evaluate how well it compares to Windsor Castle, which I am more familiar with. My application is a WCF service application hosted in IIS. As a result, I am trying...
1
I am having to re-write a large WinForms application and I want to use MVC to allow increased testing capability etc. I want to also adopt Ninject as my IoC container as it is lightweight, fast and...
Dipetalous asked 4/3, 2016 at 17:20
1
Solved
Here is the issue at hand:
While calling my CustomerController through the URL, I get the following exception:
ExceptionMessage:
An error occurred when trying to create a controller of type...
Ingham asked 7/3, 2016 at 0:55
2
Solved
We are trying to use Ninject within an Owin with WebAPI pipeline. We have everything setup according to this documentation, but we cannot get InRequestScope() to work.
Here's the significant part ...
Ivey asked 4/12, 2014 at 20:57
1
Solved
I'm updating a project of mine to use AutoMapper 4.2, and I'm running into breaking changes. While I seem to have resolved said changes, I'm not entirely convinced I've done so in the most appropri...
Rrhoea asked 5/2, 2016 at 21:38
3
Solved
I'm getting the following error:
Test method: BootStrapperTest.Can_Create_Alert_Management_Object threw exception: Ninject.ActivationException:
Error activating IAlertManagement No matching bindi...
Selfloading asked 8/8, 2012 at 12:13
2
Solved
I have a multitier application using NInject to resolve dependency injection. Each tier has a particular NInject module:
Service Layer - ServiceModule
DataLayer - DataModule
In my presentation ...
Seam asked 25/1, 2013 at 16:6
1
I am implementing IErrorHandler in order to centralize all of the error handling for my WCF service in one place. This works fairly well:
public class ServiceErrorHandler : IErrorHandler
{
publi...
Jehu asked 7/8, 2013 at 20:37
2
Solved
Working currently on writing an API site (.NET Web Api 2.1)
For our prior API sites we had used the Ninject.MVC3 package and wired up a dependency resolver and scope manually and plugged in our lo...
Buggs asked 31/3, 2014 at 17:54
3
Solved
I know there are several questions a bit like this one, but as I'm unable to locate any documentation and none of the other questions have any answers that help me, here goes:
I create a new ASP.N...
Stringency asked 29/4, 2014 at 8:6
7
Solved
I created a new MVC3 project, hit F5, saw the sample page.
Then I used NuGet to get the Ninject.MVC extension. I modified my global.asax according to the Ninject documentation, How To Setup an MVC...
Hensel asked 1/3, 2011 at 22:3
0
I have a set of projects which provide all the functionality necessary to run a .Net service. The project makes use of Dependency Inject via Ninject.
My (simplified) solution looks like this:
Pro...
Jame asked 2/12, 2015 at 13:25
3
Solved
I have been updating my implementation of ASP.NET Identity all day today and I feel I'm on the last step, but just can't make it work. All I want to happen is to have the user's current session (if...
Barracuda asked 1/12, 2015 at 6:25
4
Solved
I'm using Ninject.Extensions.Factory with Ninject 3 to create a factory, which creates different types of IFoo based on the string provided to the factory. I've got a passing unit test, but oddly, ...
Bilbo asked 15/5, 2012 at 12:52
1
Solved
I am attempting to use Ninject with my application logging wrapper.
Here is the wrapper:
public class NLogLogger : ILogger
{
private readonly Logger _logger;
public NLogLogger(Type t)
{
_log...
Explain asked 18/11, 2015 at 21:33
1
Solved
I'm quite new to IoC frameworks so please excuse the terminology.
So what I have is a MVC project with the Nininject MVC references.
I have other class libarys in my project e.g. Domain layer, I w...
Antebi asked 18/11, 2015 at 9:57
1
Solved
In my NinjectConfigurator I have
container.Bind<IClock>().To<SystemClock>();
I have also tried
container.Bind<IClock>().To<SystemClock>().InSingletonScope();
But I ge...
3
Solved
First of all, I have never seen an example of using ninject with wcf.
This is my .svc:
<%@ ServiceHost Language="C#" Debug="true" Service="MyService.Services.NotifyService" %>
My Service:...
3
Solved
I have a 3 layer application and the layers are:
Web: Presentation Layer (ASP.NET MVC) --> only sees BLL
BLL: Business Logic Layer --> only sees DAL
DAL: Data Access Layer
So the Web layer does...
Panhellenic asked 8/3, 2014 at 23:37
7
Solved
At the risk of stepping into holy war territory, What are the strengths and weaknesses of these popular DI/IoC frameworks, and could one easily be considered the best? ..:
Ninject
Unity
Ca...
Midcourse asked 3/1, 2011 at 2:55
1
Solved
I am trying to instruct my ASP.NET Core MVC application to use a 3rd party DI container. Rather than writing an adapter I am trying to just plug in the the library following the advice in this post...
Diathesis asked 7/10, 2015 at 21:1
© 2022 - 2024 — McMap. All rights reserved.