Re: Reliably build the castle stack

2009-03-23 Thread Paul Cowan
You are absolutely right. I was trying to build by running the tests and it was causing grief because the remoting project was looking for nunit 2.2.x. Without the tests, I can build and progress with my project. 2009/3/23 Roelof Blom roelof.b...@gmail.com Or type build release quick rebuild,

Re: Reliably build the castle stack

2009-03-23 Thread Roelof Blom
You should be able to build with the tests if the following conditions are met: 1. A running SQL Server instance named SQLExpress 2. Two databases named test1 and test2 in the SQLExpress instance 3. Distributed Transaction Coordinator should be up (net start MSDTC) 4. (Vista) Build as

Re: Factory Facility - Create method called not every time

2009-03-23 Thread Daniel Fernandes
BTW my assumption is that a factory method is to be called whenever it can satisfy a dependency. I tried implementing IDisposable on the Create method output but that didn't help. I reverted in using Property Setter injection of the factory class and calling Create method there. Daniel On 23

Re: Factory Facility - Create method called not every time

2009-03-23 Thread Mauricio Scheffer
There's no lifestyle defined for IPrincipal in your registration, so it's using the default (singleton). Define it as Transient and Create () will be called every time. On Mar 23, 1:59 pm, Daniel Fernandes goo...@danielfernandes.net wrote: BTW my assumption is that a factory method is to be

Re: Factory Facility - Create method called not every time

2009-03-23 Thread Daniel Fernandes
Thanks I will try this. I gather the AddFactoryTOutput,TFactory method for the Factory facility doesn't allow to override the lifestyle of the output though? That's how I initially started adding this functionality. Daniel On 23 Mar, 17:09, Mauricio Scheffer mauricioschef...@gmail.com wrote:

dictionary adapter and resx files

2009-03-23 Thread Jan Limpens
Hello, I am refactoring away ths strings in my application (mainly user messages and format strings for logging). I put them into resx files but don't like these classes visual studio generates for acessing them. Is there a good pattern on how to do this with dictionary adapter, or something

ignore a route

2009-03-23 Thread Joe V.
How do you ignore certain routes or paths? Similar to this in asp.net mvc http://haacked.com/archive/2008/07/14/make-routing-ignore-requests-for-a-file-extension.aspx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Queries in ActiveRecord

2009-03-23 Thread Alessandro C.
You can use more than one method to query ActiveRecord: HQL, DetachedCriteria, NHibernate Query Generator I think is the easiest: http://ayende.com/Blog/archive/2006/10/14/NHibernateQueryGenerator15IsDoneTimeWithMagic.aspx But I suggest Linq2NHibernate:

Re: ignore a route

2009-03-23 Thread Ricardo Lopes
I haven't tried but i think you could define a StaticFileModule for that extension/path/handler whatever before the monorail routing module. 2009/3/23 Joe V. joseph.v...@gmail.com: How do you ignore certain routes or paths?  Similar to this in asp.net mvc

Re: Factory Facility - Create method called not every time

2009-03-23 Thread Mauricio Scheffer
Based on what I see in the code, no, it doesn't seem to support it. On Mar 23, 3:06 pm, Daniel Fernandes goo...@danielfernandes.net wrote: Thanks I will try this. I gather the AddFactoryTOutput,TFactory method for the Factory facility doesn't allow to override the lifestyle of the output

Component registration for Castle

2009-03-23 Thread Adriano Machado
Do I need to register every component I'd like to resolve? The current scenario that I have is a Service that gives me instances of ViewModels for my app. What I did was to declare the dependencies of the view models, but not the VMs themselves. But in ths case it is not working. Castle cannot

Re: Component registration for Castle

2009-03-23 Thread Ayende Rahien
Yes, you need to register anything that you resolve On Mon, Mar 23, 2009 at 5:47 PM, Adriano Machado adriano.mach...@gmail.comwrote: Do I need to register every component I'd like to resolve? The current scenario that I have is a Service that gives me instances of ViewModels for my app.