castle-windsor Questions
2
Solved
I have the following class:
public class DatabaseFactory<C> : Disposable, IDatabaseFactory<C> where C : DbContext, BaseContext, new()
{
private C dataContext;
private string connecti...
Celestine asked 27/11, 2013 at 13:15
5
Solved
I am using windsor DI framework in one of my MVC project. The project works fine when I tried to run from Visual Studio 2008.
But when i tried to run the project creating an application in IIS7 th...
Hysell asked 3/11, 2008 at 5:53
2
Solved
I am learning DDD, n-Tier, Repositoriess and the likes. Someone pointed me to ASP.NET Boilerplate and I decided to start a test project using that. I have never dealt with dependency injection so t...
Uund asked 3/9, 2015 at 1:0
0
I normally register components using (fluent) code but I now have a requirement to register certain types via XML. The file looks like this:-
<?xml version="1.0" encoding="utf-8"?>
<confi...
Mongoose asked 20/4, 2016 at 12:48
3
Solved
Can .NET 4 ISet<> HashSet<> replace NHibernate Iesi.Collections ISet , HashSet ? I am using Castle proxy, and NHibernate 3.0 .
Synectics asked 10/2, 2012 at 2:48
4
Solved
I need some help - I am trying to use a custom validation attribute in an ASP.NET MVC web project that needs to make a database call.
I have windsor successfully working for the controllers and th...
Chivalrous asked 12/6, 2009 at 10:29
3
Solved
I am following example by José F. Romaniello on session management with NHibernate. It's a very good article, however I'm struggling with it having very little experience with NHibernate, Windsor a...
Procurator asked 16/6, 2011 at 16:16
2
Solved
Here is the example:
interface IComponentA {};
class ComponentA : IComponentA { };
interface IComponentB { };
class ComponentB : IComponentB { };
interface IComponentC { };
class ComponentC :...
Mcandrew asked 28/10, 2011 at 8:11
3
Solved
This article is a good starting point for doing Web API with Castle Windsor, but what if I create a simple MVC controller? It only works if there is no dependency into the inject.
Adding this one,...
Aeolus asked 28/9, 2012 at 15:6
2
I'm working on my first sharepoint project. Is there a way I can use dependency injection (like castle windsor) in sharepoint?
If so can you please provide a samle code.
Thanks
Rutter asked 7/3, 2011 at 9:19
2
Solved
I have designed a telemetry logger for few separate platforms using the composite pattern
public interface ILogger
{
void Log();
}
public class A : ILogger
{
public void Log(...);
}
public cla...
Doubles asked 13/10, 2015 at 4:59
3
Solved
I want to change the registered instance with another instance created at runtime.
This can be removing existing component and re-registering the new one, or just reassigning the newly created in...
Preoccupancy asked 17/9, 2013 at 9:50
6
Solved
I know it's possible to use DependencyResolver and register Castle Windsor with MVC but due to the issues described in https://mcmap.net/q/438300/-castle-windsor-dependency-resolver-for-mvc-3 we ha...
Ottilie asked 4/3, 2012 at 19:3
2
Solved
I have an MVC5 application that uses Castle Windsor (http://www.artisancode.co.uk/2014/04/integrating-windsor-castle-mvc/). I recently tried to add an Async method an MVC Controller. When I do this...
Pazit asked 10/8, 2015 at 1:52
7
Solved
I have been looking into the Castle project and specifically Windsor. I have been so impressed with what is possible with this technology and the benefits of having a such a loosely coupled system ...
Rory asked 23/12, 2008 at 7:26
2
Interceptor
public class CachingInterceptor : IInterceptor
{
public void Intercept(IInvocation invocation)
{
// code comes here....
}
}
Business Layer
public class Business : IBusine...
Shriver asked 7/7, 2015 at 8:2
1
I have some SignalR hubs which may need to access some transient and singleton dependencies. Hooking the creation of the Hub is easy and works just fine however SignalR does its own Dispose() call ...
Fortification asked 23/2, 2014 at 11:21
2
We are hitting the following error in some of our environments, seemingly after the app pool recycles.
An instance of IControllerFactory was found in the
resolver as well as a custom registere...
Siobhan asked 20/9, 2012 at 14:15
2
Solved
I've got a IRunningTaskFactory which is registered with Windsor AsFactory() using the Typed Factory Facility. The interface has a single method that looks like this:
RunningTask Create(ITask task)...
Teevens asked 24/3, 2011 at 16:14
2
I am using Castle Windsor in my application and I would like to use inject some services example ILog in my ExceptionFilterAttribute :
public class GenericExceptionFilterAttribute : ExceptionFilte...
Blue asked 17/3, 2015 at 12:51
4
Solved
I'm really new to Castle Windsor IoC container. I wanted to know if theres a way to store session variables using the IoC container. I was thinking something in the line of this:
I want to have a ...
Knelt asked 2/9, 2009 at 7:7
2
Does anyone have any example code for getting Umbraco MVC working with the Castle Windsor dependency injection framework? The problem I'm having is getting my surface controllers to use injectable ...
Safekeeping asked 17/2, 2014 at 17:29
2
Solved
In a Castle Windsor scenario I want to check if my container has a certain service registered, and do basically
if (container.HasComponentFor<IMyService>()) {
// resolve service with contai...
Marcellamarcelle asked 6/2, 2015 at 12:11
1
Solved
My basic setup is a lot like this; http://visualstudiomagazine.com/articles/2011/10/01/wpf-and-inversion-of-control.aspx
An MVVM setup in WPF. I'm injecting a UnitOfWork and a RepositoryFactory in...
Foppish asked 1/5, 2013 at 20:6
1
Solved
I am working on upgrading our project from .Net 2 to .Net4.5, at the same time I'm pushing as many references as I can to NuGet and making sure the versions are current.
I am having a problem gett...
Kirkman asked 25/9, 2013 at 17:48
© 2022 - 2024 — McMap. All rights reserved.