Questions tagged [windsor-3.0]

Windsor 3.0 is a major release of the Castle-Windsor framework.

Excerpt taken from http://docs.castleproject.org/Windsor.Whats-New-In-Windsor-3.ashx

Windsor 3 contains many changes and improvements over including a number of breaking changes.

Main improvements are:

  • Improved and extended debugger views
  • Official release of the
  • Added two new lifestyles: scoped and bound
  • Added support for Lazy components
  • And many more
36 questions
11
votes
2 answers

Castle Windsor can't find installers in assemblies

I have code in my global.axax: protected void Application_Start() { WindsorContainer = new WindsorContainer(); WindsorContainer.Install(FromAssembly.InDirectory(new AssemblyFilter(AppDomain.CurrentDomain.RelativeSearchPath))); …
David Levin
  • 6,573
  • 5
  • 48
  • 80
9
votes
1 answer

CastleWindsor 3.0 and DefaultServiceHostFactory.RegisterContainer()?

The following does not compile: DefaultServiceHostFactory.RegisterContainer(Container.Kernel); The static method does not seem to exist in Castle 3.0 - I checked the breakingchanges.txt and did not see this listed. What am I missing?
znelson
  • 919
  • 1
  • 10
  • 24
6
votes
0 answers

AOP with Castle Windsor

What I'm trying to achieve is AOP via attributes using Castle Windsor interceptors. I've had some success but having trouble with the aspects at the class level vs. the method level. If I use class level attributes only, all methods will be…
Juan Ayala
  • 3,388
  • 2
  • 19
  • 24
4
votes
2 answers

How can I improve Windsor 3.0 startup time?

I am trying out Windsor 3.0 to see if we can upgrade. The following console application var t = DateTime.Now; var container = new WindsorContainer(); Debug.WriteLine("Created in " + (DateTime.Now - t).TotalMilliseconds); Takes 5421.875ms…
Jeff
  • 35,755
  • 15
  • 108
  • 220
4
votes
1 answer

WCF & Castle Windsor - Looks like you forgot

We have recently started migrating to Castle Windsor and i'm having some issues getting our WCF service running. It is a regular windows service NOT HOSTED IN IIS where we serve up SSL material and use a custom X509CertificateValidator to verify the…
user2831628
  • 191
  • 8
4
votes
3 answers

Restricting Windsor Container from resolving an object based on

I'd like to create a container where it will allow ISomeService to be resolved, but not ISomeOtherService. Even though my registration for ISomeService depends on ISomeOtherService. Does that make sense? public interface ISomeService {} public…
Matthew Bonig
  • 2,001
  • 2
  • 20
  • 40
3
votes
2 answers

Windsor Castle Equivalent of Autofac's IStartable

I'd like to be able to implement this in my windsor castle container set up: "For all types that implement IStartable in the current assembly register them and run the Start method for them." Similar to what you can do using Autofac for things like…
Andrew Duffy
  • 795
  • 2
  • 17
  • 37
3
votes
1 answer

Typed Factory Facility creating recursively nested entities

Consider situation when you need to create some recursively nested things, for example like that: public interface IRecurrentTestNodeFactory { RecurrentTestNode Create(int num); } public class RecurrentTestNode { …
Ivan Danilov
  • 14,287
  • 6
  • 48
  • 66
3
votes
2 answers

Castle Scoped Lifestyle not working

Trying to find the real cause of this and not having much fun! Type is not resolved for member 'Castle.MicroKernel.Lifestyle.Scoped.CallContextLifetimeScope+SerializationReference,Castle.Windsor, Version=3.1.0.0, Culture=neutral,…
Code Jammr
  • 1,867
  • 3
  • 14
  • 18
2
votes
2 answers

Failure of Castle Winsor 3.0 NuGet installation

I'm trying to install Castle Windsor 3.0 using NuGet, and it fails with the following message: PM> Install-Package Castle.Windsor 'Castle.Core (≥ 3.0.0)' not installed. Attempting to retrieve dependency from source... Done. Install-Package : Id is…
Appetere
  • 6,003
  • 7
  • 35
  • 46
2
votes
1 answer

Multiple registrations with Castle Windsor

I have the following situation in a WPF application: public class ExpenseView : UserControl, IAccountingView {} // just a marker, the contract is in IViewWindow public interface IAccountingView : IViewWindow {} And I need to be able to register…
bdaniel7
  • 197
  • 1
  • 10
2
votes
3 answers

Injecting AppSettings from code using Windsor 3

I'm looking for ways of getting rid of Windsor Xml configuration files. I want to leave only necessary settings (mostly strings) and move them to AppSettings. Is there a good way to do it? Preferably without manual mapping between AppSettings and…
Kostassoid
  • 1,870
  • 2
  • 20
  • 29
1
vote
0 answers

Owin.Testing TestServer with Windsor container and Moq

I have a WebApi where I am using Windsor Castle as a IoC framework. I am using Owin library and a startup file was created to centralized the configuration of the API. Everything works as expected. I have integration tests where I am using…
1
vote
2 answers

Can't create component as it has dependencies to be satisfied. Parameter which was not provided

I have just started using Windsor to resolve dependency. But i am getting below error while passing string value in my Controller.I checked couple of similar Windsor Post but no luck. public class HomeController : Controller { public readonly…
1
vote
1 answer

IoC container resolved DbContext(EF) causing eager loadng of child object in entity

Below is the stripped down version of my original webproject. I have following classes for the Data access project public class DbContextFactory : IDbContextFactory { private readonly DbContext dbContext; public DbContextFactory() { …
RenjithR
  • 13
  • 4
1
2 3