castle

Solving a dependency graph for aspect oriented component

public interface IFoo : ICanCatch, ICanLog { void Bar () } public class Foo : IFoo { public void Bar () { Console.WriteLine ("Bar"); } } IWindsorContainer _Container; [TestFixtureSetUp] public void init () { _Container = new WindsorContainer(); _Container.Register( Component.For<LogInterceptor> (),...

Castle Windsor DynamicProxy Interception IInvocation Documentation

On a Castle Castle.DynamicProxy.IInvocation, what's the difference between GetConcreteMethod GetConcreteMethodInvocationTarget Method I read the documentation, but I don't understand the difference, especially between the first two. I'm guessing that Method is just the MethodInfo for the method on the actual registered type? ...

[FluentNHibernate] Could not load file or assembly 'Castle.DynamicProxy2, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc'

Hi! I'm using Microsoft Visual Studio 2010. I start to work with FluentNHibernate 1.1. After configuration.BuildSessionFactory() execute, i have exception. Message "Could not load file or assembly 'Castle.DynamicProxy2, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. Castle.DynamicProxy...

Castle Scheduler JobRunners

I'm setting only one JobRunner per scheduler, but runners does not work that i want. IJobStore jobStore = new MemoryJobStore(); IJobFactory jobFactory = new AllJobsFactory(); IJobRunner jr1 = new DefaultJobRunner(jobFactory, "JR1"); IJobRunner jr2 = new DefaultJobRunner(jobFactory, "JR2"); IJobRunner jr3 = new Defau...

Tell C# to use Castle to create objects

Hi! I think my question is a long shot. Lets say I have an attribute: public sealed class MyCustomAttribute: ActionFilterAttribute Used on a class method [MyCustomAttribute] public virtual ActionResult Options(FormCollection collection) Now, I need to add a contructor's parameter public MyCustomAttribute(IMyDependent...