|
In a follow up to Krzysztof’s statement that Windsor does a lot more than other IoC’s, I wanted to understand how these IoC’s stack up against each other and the benefits/additional facilities that castle Windsor provides.
Are there any comparisons? Can...
Started by Quintin Par on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Windsor , StructureMap , Spring.NET: I like to think that Windsor....
Somewhat outdated by now (they're from before Windsor 2.0)
However, I don't think there are really any vital features that Windsor offers and other containers don't.
|
|
I have a project where my business layer is constructed using DI, but I'm trying to go an additional step and use Windsor to manage object construction.
Let's just say I have a pre-existing data layer (that I don't want to modify), that can be accessed...
Started by Jeremy Frey on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
A "whoa" moment when I saw it execute successfully, because I hadn't passed in the specific implementation type to Kernel.AddComponent()
Using Windsor 2.0:
[TestFixture] public class WindsorTests.
|
|
I'm a long-time Windows developer, having cut my teeth on win32 and early COM. I've been working with .Net since 2001, so I'm pretty fluent in C# and the CLR. I'd never heard of Castle Windsor until I started participating in Stack Overflow. I've read...
Started by John Cocktoastan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It can give you objects when you are writing WorkflowStepper or AlertRegistry
You just worry about the concern you that when you do this:
WorkflowStepper stepper....
There are others like it.
Castle Windsor is an inversion of control tool.
|
Ask your Facebook Friends
|
Hi guys
I'm fairly new to Castle Windsor and am looking into the in's and out's of the logging facility. It seems fairly impressive but the only thing i can't work out is where Windsor sets the Logger property on my classes. As in the following code will...
Started by vdhant on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Thanks Anthony
Since you have a public Property with a Setter, every time you resolve your object from Windsor, an ILogger which your facility will populate....
In the source code and where in the windsor lifecycle does it set the property.
|
|
I'm trying to implement my custom authorize attribute like:
public class MyCustomAuth : AuthorizeAttribute { private readonly IUserService _userService; public MyCustomAuth(IUserService userService) { _userService= userService; } ... continued }
I am ...
Started by Ronnie on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Therefore....
With that said, you are going down the wrong path by trying to use castle windsor with attributes - because attributes are not referenced in code, but instead are reflected upon.
Must come from Castle Windsor via a registered type.
|
|
I'm considering using Castle Windsor's Interceptors to cache data for helping scale an asp.net site.
Does anyone have any thoughts/experience with doing this?
Minor clarification: My intention was to use Windsor to intercept 'expensive' calls and delegate...
Started by Stacy A on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
From the cache object to session (not interceptors) with Windsor....
Windsor has its foundation in other areas not necessarily caching.
Windsor is great, but why use that for caching when you have several built in ways to cache data.
|
|
I've got a personal (learning) project that uses Castle Windsor (with the NHibernate facility) and NHibernate (and ASP.NET MVC and Moq, and SQL Server 2008, all stuff that I want to learn more about).
I attempted to use NHibernate Validator over the weekend...
Started by Roger Lipscombe on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I am using the following components :
NHibernate 2.0.1GA NHibernate Validator 1.0.0GA Castle Windsor (custom build) In order to get a version of Castle Windsor & co that matches....
when Castle Windsor gets released (soon ;) ).
|
|
How do I configure Castle Windsor to use an Initialize method for a static helper class when requesting an object? I am trying to add some extension methods HtmlHelper so it has to be a static class and method. My HtmlHelper extensions depend on a IHtmlHelpersService...
Started by Daniel A. White on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Of course if you contributed the patch for static support to the Castle project, they may accept it
I don't think IoC can help you with static classes, Windsor.
Evil when using a third-party project.
|
|
Worth a visit in january?
Might have a few spare hours to kill on a sunday morning when staying in farnborough, couldn't find anywhere else in the area to go/do other than brooklands but the lady friend i'll be with wont be intrrested in that.
anything...
Started by Wez on
, 21 posts
by 12 people.
Answer Snippets (Read the full thread at com):
Really really nice....
I've lived in Windsor for 11 years and never been I suppose it would be interesting to see where.
|
|
I want to redefine an (default) implementation in a given windsor-container. Is that what OverWrite is for? Doesn't work, though.
container.Register( Component.For<IServiceOperationAuthorization>() .OverWrite() .Instance(_authorization) );
Any other...
Started by Lars Corneliussen on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I needed to switch a component implementation when running a system in a integration test suite.
Here is more information about registering Decorators with Windsor .
On what you're trying to achieve.
|