Re: DP2 and IProxyGenerationHook

2008-09-12 Thread Ayende Rahien
with an attribute. Rather than putting the code inside the Proxy class, I was hoping to put it outside of the class. Not a big deal, but would be nice to be able to do this. I've tried adding an IInterceptorSelector, but it doesn't seem to get called. On Sep 12, 3:26 pm, Ayende Rahien [EMAIL PROTECTED

Re: strange brail (probably) phenomenon

2008-09-16 Thread Ayende Rahien
:52 PM, Ayende Rahien [EMAIL PROTECTED] wrote: Basically, BooViewEngine can handle that as a parameter. On Sat, Sep 13, 2008 at 10:52 PM, Ayende Rahien [EMAIL PROTECTED] wrote: That should be pretty easy to do, yes. On Sat, Sep 13, 2008 at 5:36 PM, Jan Limpens [EMAIL PROTECTED

Re: NHibernate, ActiveRecord and SQL Server 2005 full-text indexing

2008-09-22 Thread Ayende Rahien
Try = 1 On Mon, Sep 22, 2008 at 4:23 PM, burkhard_m [EMAIL PROTECTED]wrote: @Eric: thanks the Expression.Sql() restriction works. Anyhow there must be a way to register the function with NHibernate. So I tried Ayende Rahien's suggestion but still no success. I registered the CONTAINS

Re: NHibernate, ActiveRecord and SQL Server 2005 full-text indexing

2008-09-22 Thread Ayende Rahien
.Text as Text0_ from [T_Descriptions] descriptio0_ where (contains(descriptio0_.Text , @p0)=1 ); @p0 = 'Text*' On 22 Sep., 15:34, Ayende Rahien [EMAIL PROTECTED] wrote: Try = 1 On Mon, Sep 22, 2008 at 4:23 PM, burkhard_m [EMAIL PROTECTED]wrote: @Eric: thanks the Expression.Sql

Re: Mail Template Components

2008-09-23 Thread Ayende Rahien
Please create a test case that shows the issue. On Tue, Sep 23, 2008 at 6:25 PM, Jamie Fraser [EMAIL PROTECTED]wrote: Is it possible to use a Component within a mail template? When I do so I get a NullRefException My mail/info.brail contains: % component OrderConfirmation, [EMAIL

Re: Trouble with Routing.

2008-09-23 Thread Ayende Rahien
at 12:18 AM, hammett [EMAIL PROTECTED] wrote: I'd consider supporting it. Not sure I'd like depending on it... On Tue, Sep 23, 2008 at 2:16 PM, Ayende Rahien [EMAIL PROTECTED] wrote: In that case, what about just using system.web.routes? On Wed, Sep 24, 2008 at 12:14 AM, hammett

Re: Mail Template Components

2008-09-24 Thread Ayende Rahien
This is likely a bug, and when I get down to it (a day or two), I'll commit a fix. On Wed, Sep 24, 2008 at 2:49 PM, Jamie Fraser [EMAIL PROTECTED]wrote: Yes - just to reiterate what Jan is saying; Our controller works fine - our issue is the previously mentioned NullReferenceException when

Re: whos online

2008-09-25 Thread Ayende Rahien
Not enough details to answer. On a single server? In a web farm? What is the expected user load? On Thu, Sep 25, 2008 at 3:12 PM, roundcrisis [EMAIL PROTECTED] wrote: hi there i want o know at any given time ( in a view) whos online, i was thinking of doing this using the session has

Re: Mail Template Components

2008-09-25 Thread Ayende Rahien
at 7:33 AM, Ayende Rahien [EMAIL PROTECTED] wrote: Okay, this is most certainly a bug, but it is not a trivial one. The underlying problem is that to render a view component, you have to use the engine context, because you need access to the IViewComponentFactory. This is not passed

Re: Mail Template Components

2008-09-25 Thread Ayende Rahien
The actual context we need is IEngineContext, not anything else. On Thu, Sep 25, 2008 at 3:50 PM, Victor Kornov [EMAIL PROTECTED] wrote: And some kind of context, different from web context. So, View engine could operate in either environment. On Thu, Sep 25, 2008 at 4:48 PM, Victor Kornov

Re: got a JQueryGenerator ?

2008-09-26 Thread Ayende Rahien
This is something that I did for my private use. It works on my machine, etc... On Fri, Sep 26, 2008 at 12:16 PM, Ernst Naezer [EMAIL PROTECTED]wrote: Hi guys, did anybody ever get to writing this and some test cases under the same license as the rest of the code so we can add it to the

Modifications to Brail view engine

2008-09-28 Thread Ayende Rahien
Hi, I just finished a major upgrade of Brail. In particular, the main change was migrating from version 9 months old to the current version. There was a breaking change in the process. Nullable expressions such as ?foo are no longer processed by the compiler, so I moved processing them into the

Re: Modifications to Brail view engine

2008-09-29 Thread Ayende Rahien
yes On Mon, Sep 29, 2008 at 1:35 AM, Mike Nichols [EMAIL PROTECTED]wrote: Thanks for doing this..I looked at the pre processor to do it but didn't have time to grok it. Now I can learn :) This puts RhinoTools and Castle in lockstep for right now doesn't it? On Sep 28, 12:06 pm, Ayende

Re: Modifications to Brail view engine

2008-09-29 Thread Ayende Rahien
No. On Mon, Sep 29, 2008 at 10:28 PM, Jan Limpens [EMAIL PROTECTED] wrote: hi oren, does this somehow affect the viewcomponent/mail situation? -- Jan ___ [EMAIL PROTECTED] www.limpens.com +55 (11) 3082-1087 +55 (11) 3097-8339

Re: Composite user type mapping fails when part of joined-subclass

2008-09-30 Thread Ayende Rahien
can you create a failing test case? On Tue, Sep 30, 2008 at 3:29 PM, Ian Cooper [EMAIL PROTECTED]wrote: We have hit a problem with AR generating the mappings for a Composite User Type embedded within a joined sub-class. Simply a property defined [CompositeUserType] on a class that is not the

Re: Monorail and Brail: how to access siteRoot in a common script?

2008-10-01 Thread Ayende Rahien
You can't, unfortunately. Common Scripts are just plain boo files, no brail magic. You can access that from the HttpContext, I assume. On Wed, Oct 1, 2008 at 11:44 AM, Gabriel Schenker [EMAIL PROTECTED]wrote: I try to write a common script in brail and want to access the siteRoot parameter.

Re: Composite user type mapping fails when part of joined-subclass

2008-10-02 Thread Ayende Rahien
an opportunity to commit more. Mark Twain - Original Message From: Ayende Rahien [EMAIL PROTECTED] To: castle-project-users@googlegroups.com Sent: Tuesday, 30 September, 2008 16:34:07 Subject: Re: Composite user type mapping fails when part of joined-subclass can you create a failing

Re: Monorail and Brail: how to access siteRoot in a common script?

2008-10-02 Thread Ayende Rahien
'. interestingly I have no problems with other namespaces and/or classes of the .NET framework, e.g. System.Threading.Thread what am I missing? On Wed, Oct 1, 2008 at 11:15 AM, Ayende Rahien [EMAIL PROTECTED] wrote: You can't, unfortunately. Common Scripts are just plain boo files, no brail magic. You

Re: Monorail and Brail: how to access siteRoot in a common script?

2008-10-02 Thread Ayende Rahien
2, 2008 at 9:47 AM, Ayende Rahien [EMAIL PROTECTED] wrote: import System.Web from System.Web On Thu, Oct 2, 2008 at 10:42 AM, Gabriel Schenker [EMAIL PROTECTED] wrote: ok, I try this one (copied from Castle C# code...) import System.Web def applicationPath(): path

Re: Monorail and Brail: how to access siteRoot in a common script?

2008-10-02 Thread Ayende Rahien
already exists On Thu, Oct 2, 2008 at 8:19 PM, Ayende Rahien [EMAIL PROTECTED] wrote: More than that, if the namespace cannot be found the boo compiler will look for an assembly with the same name.So: import foo.bar.baz Will look for assemblies named: foo.bar.baz foo.bar foo Before

Re: IE tries to download the .rails pages?

2008-10-07 Thread Ayende Rahien
Is it downloading the content of the file or the rendered output?Check if you set the header for attachment. On Tue, Oct 7, 2008 at 5:17 PM, Brian Chan [EMAIL PROTECTED] wrote: Hi all, When I try to access .rails pages in IE it tries to download them as a file instead of rendering them

Re: building with .net 3.5

2008-10-24 Thread Ayende Rahien
-t:net-3.5 On Fri, Oct 24, 2008 at 8:53 PM, Jan Limpens [EMAIL PROTECTED] wrote: my nant sucks badly... I used to start a castle build with nant -D:assembly.allow-partially-trusted-callers=true -D:common.testrunner.enabled=false build.log but this fails, probably due to the drop of vs2005

Re: How do I build all projects on the trunk?

2008-10-24 Thread Ayende Rahien
supply a patch. On Oct 24, 2:34 pm, Jason Meckley [EMAIL PROTECTED] wrote: ok, I'll change my order up. I was doing: NH Castle Rhino Ayende Rahien wrote: The way I work when I want to do this is by:compiling castle copy castle.core, castle.dynamicproxy2 to nh's sharedlibs

Re: boo crash on startup

2008-10-24 Thread Ayende Rahien
Do you have any other dependencies on Boo? On Fri, Oct 24, 2008 at 10:55 PM, Jan Limpens [EMAIL PROTECTED] wrote: after pulling the latest trunk my projects fail on startup du to some boo/brail crash. were there any breaking changes (all boo dlls got updated, so it would not be unlikely)

Re: WCF Integration and COM - problem

2008-11-05 Thread Ayende Rahien
Cast to IDisposable and do it yourself.Note the WCF disposable pitfall, mind you On Wed, Nov 5, 2008 at 7:38 PM, Callum Hibbert [EMAIL PROTECTED]wrote: Craig - I think it was you who did some (most? all?) of the work on the WCF integration, are you saying the client shouldn't be transient (in

Re: Monorail Session Loss

2008-11-05 Thread Ayende Rahien
web garden mode in IIS? On Thu, Nov 6, 2008 at 1:29 AM, Colin Ramsay [EMAIL PROTECTED] wrote: Help! I must be completely thick, can anyone suggest why my session is being lost between requests? It only seems to be in release mode. --~--~-~--~~~---~--~~ You

Re: Monorail Session Loss

2008-11-06 Thread Ayende Rahien
realised that this seems to be happening on debug mode too. On Wed, Nov 5, 2008 at 11:54 PM, Ayende Rahien [EMAIL PROTECTED] wrote: web garden mode in IIS? On Thu, Nov 6, 2008 at 1:29 AM, Colin Ramsay [EMAIL PROTECTED] wrote: Help! I must be completely thick, can anyone suggest why my

Re: select n+1 optimization for multiple levels

2008-11-25 Thread Ayende Rahien
Check how to use multi criteria / query for this http://ayende.com/Blog/archive/2007/06/20/Efficently-loading-deep-object-graphs.aspx On Tue, Nov 25, 2008 at 3:58 PM, Dan Bunea [EMAIL PROTECTED] wrote: Hi, We have a 3d scene, like: scene - fixtures - containers - garments (all one to many).

Re: Self hosting and Castle WCF facility

2008-11-25 Thread Ayende Rahien
You use the same general idea, by using WindsorServiceHost directly. You can look at the unit tests for that. On Tue, Nov 25, 2008 at 12:09 PM, Grant [EMAIL PROTECTED] wrote: Does anyone have an example of this (or is it even possible with the Castle Windsor Wcf facility)? The few examples I

Re: ATM doesn't rollback my transaction

2008-12-07 Thread Ayende Rahien
CommittedResourceException means that you have failed to commit the transaction so you can't even roll it back. On Mon, Dec 8, 2008 at 12:10 AM, karron [EMAIL PROTECTED] wrote: Hi, I implemented a customer resource from IResource interface, it begins( commit, rollback) nhibernate

Re: ATM doesn't rollback my transaction

2008-12-07 Thread Ayende Rahien
it. Thank you very much. On Mon, Dec 8, 2008 at 1:13 PM, Ayende Rahien [EMAIL PROTECTED] wrote: CommittedResourceException means that you have failed to commit the transaction so you can't even roll it back. On Mon, Dec 8, 2008 at 12:10 AM, karron [EMAIL PROTECTED] wrote: Hi, I

Re: Registration of generic parameter

2008-12-16 Thread Ayende Rahien
This look like it should work, please create a test case that demonstrate the problem On Wed, Dec 17, 2008 at 1:25 AM, Mike Nichols nichols.mik...@gmail.comwrote: I have looked around and can't figure this out. I am trying to configure this : public class DefaultCreateMaterialsTestCommandT,

Re: Replacing custom NHibernate from Castle trunk with NHibernate 2.0.1 GA

2008-12-17 Thread Ayende Rahien
You might need to use the NHibernae.ByteCode.Castle dll and to specify proxy_factory.actory, but that about it. On Wed, Dec 17, 2008 at 5:00 AM, Martijn Boland mart...@boland.org wrote: Guys, Does anybody know the impact of using Castle trunk with NHibernate 2.0.1 GA? What was the reason

Re: Brail code is using wrong table.

2008-12-18 Thread Ayende Rahien
Can you create a test case for this? On Thu, Dec 18, 2008 at 4:24 PM, M Kenyon II qwert...@yahoo.com wrote: In my c# code, I put 2 tables into the PropertyBag, like this: DictionaryDateTime, long FishTable = new DictionaryDateTime, long(); DictionaryDateTime, long

Re: Windsor: Register class which implements multiple interfaces

2009-01-05 Thread Ayende Rahien
ForwardT On Mon, Jan 5, 2009 at 11:52 PM, Robert M. robertcmir...@gmail.com wrote: I have a class which implements two interfaces. I've registered a component with Windsor with the first interface. ResolveIFirstInterface provides me the proper object for the specified interface. How should

Re: brail: setting a value inside an if statement _with sideeffects_

2009-01-10 Thread Ayende Rahien
viewData is not individual customer nor corporate customer ? On Sat, Jan 10, 2009 at 6:25 PM, Jan Limpens jan.limp...@gmail.com wrote: Hello, this is a pretty basic code block: subView = xx if viewData.Customer isa IndividualCustomer: subView = IndividualCustomer

Re: brail: setting a value inside an if statement _with sideeffects_

2009-01-10 Thread Ayende Rahien
with it's original value xx. On Sat, Jan 10, 2009 at 4:38 PM, Ayende Rahien aye...@ayende.com wrote: Make sure that you actually get a corproate one, and not a proxy of the common type instead. On Sat, Jan 10, 2009 at 8:36 PM, Jan Limpens jan.limp...@gmail.comwrote: no, in this case

Re: Castle-Windsor Fluent Interface: How to register all implementations of all interfaces?

2009-01-15 Thread Ayende Rahien
AllTypes.FromAssembly(foo) .Where( delegate ) On Thu, Jan 15, 2009 at 6:07 PM, George Mauer gma...@gmail.com wrote: I have two assemblies EDC2.DAL and EDC2 where EDC2.DaoInterfaces defines a bunch of interfaces for data access objects to objects in the EDC2.Domain namespace. These are all

Re: Shared views

2009-01-20 Thread Ayende Rahien
It is just a way to tell the system where to find the view On Tue, Jan 20, 2009 at 5:51 AM, Flominator flomina...@gmx.net wrote: Hi there, while experimenting with Monorail during the last month I received a lot of help at the forum, mainly by user mausch. Now I've finally read the text

Re: Circular dependency and setters - How?

2009-01-27 Thread Ayende Rahien
Not that I can see.we would resolve one, but not both On Tue, Jan 27, 2009 at 6:27 PM, hammett hamm...@gmail.com wrote: As long as they are both singletons and use properties, it should work fine. On Tue, Jan 27, 2009 at 2:28 PM, Chucara chuc...@gmail.com wrote: I've spent the last few

Re: Circular dependency and setters - How?

2009-01-27 Thread Ayende Rahien
, 2009 at 9:42 PM, hammett hamm...@gmail.com wrote: Then we have a bug. In theory the case I depicted is perfectly valid. MEF supports it.. On Tue, Jan 27, 2009 at 6:40 PM, Ayende Rahien aye...@ayende.com wrote: Not that I can see. we would resolve one, but not both On Tue, Jan 27, 2009

Re: Circular dependency and setters - How?

2009-01-28 Thread Ayende Rahien
There is o singeton reqirement On Wed, Jan 28, 2009 at 3:35 AM, Chucara chuc...@gmail.com wrote: The singleton requirement might be a problem for us as well, but I suppose we could set the requirements ourselves. Basically, we need: - Mutually dependent services - A MVP pattern, where the

Re: DefaultTransactionManager Thread Safe?

2009-01-28 Thread Ayende Rahien
and HybridThreadScopeInfo. I assume that because I do not have isWeb=true I am using the ThreadScopeInfo. Should I add isWeb=true, and do you think that will solve it? Do I need to write a custom IThreadScopeInfo? On 1/28/09 7:49 AM, Ayende Rahien aye...@ayende.com wrote: activerecord default-lazy=true

Re: DefaultTransactionManager Thread Safe?

2009-01-28 Thread Ayende Rahien
Because if you are also using WCF, the HTTP context is not ensured. On Wed, Jan 28, 2009 at 12:28 PM, hammett hamm...@gmail.com wrote: Why? IsWeb=true should be enough.. albeit I dont see how transactions will be involved in thread switches.. On Wed, Jan 28, 2009 at 6:49 AM, Ayende Rahien

Re: Windsor: How to add interceptors during runtime?

2009-02-01 Thread Ayende Rahien
Tak a look at IInterceptorSelector On Sun, Feb 1, 2009 at 9:48 PM, George Mauer gma...@gmail.com wrote: I would like to know if it is possible and how to add an interceptor for a component that has already been registered with the container. Preferably using the Castle Windsor Fluent

Re: Windsor: How to add interceptors during runtime?

2009-02-01 Thread Ayende Rahien
, 1:50 pm, Ayende Rahien aye...@ayende.com wrote: Tak a look at IInterceptorSelector On Sun, Feb 1, 2009 at 9:48 PM, George Mauer gma...@gmail.com wrote: I would like to know if it is possible and how to add an interceptor for a component that has already been registered

Re: 2nd Level Caching - FindAll()

2009-02-03 Thread Ayende Rahien
you need to enable query caching as well, and you need to mark the query as cachable. I don't think you can do it using FindAll On Wed, Feb 4, 2009 at 2:41 AM, jasonsirota jsir...@theknot.com wrote: For reference, here's my config: activerecord isWeb=true isDebug=false

Re: Passing arguments to interceptors

2009-02-05 Thread Ayende Rahien
Not in any signficant capacity On Thu, Feb 5, 2009 at 11:50 PM, Andre Loker lo...@gmx.de wrote: Thanks for your answer. The problem is that I potentially create hundreds of instances of the same interceptor, each with its own parameters. Wouldn't this bloat the container unnecessarily?

Re: Natural key

2009-02-12 Thread Ayende Rahien
insert = false, update = false, generate = true. On Thu, Feb 12, 2009 at 10:43 AM, Martin Nilsson mffmar...@gmail.comwrote: I tried with Formula and update=false but no success Have to look into Formula a little bit more. On Thu, Feb 12, 2009 at 9:27 AM, Jimmy Shimizu

Re: Is there a way to find out what interceptors are attached to a Windsor component?

2009-02-12 Thread Ayende Rahien
GetHandler(...).ComponentModel.Interceptors Although this wouldn't work if you have IModelInterceptorSelector defined. On Thu, Feb 12, 2009 at 8:57 PM, George Mauer gma...@gmail.com wrote: I want to find out if a component registered within Windsor has an interceptor attached (and which

Re: How can I find out where my ScopeMachineryException is coming from?

2009-02-13 Thread Ayende Rahien
The stack trace? On Sat, Feb 14, 2009 at 12:22 AM, M Kenyon II qwert...@yahoo.com wrote: It's not stopping my code, but I'm wondering about cleaning it up. I can't seem to trace where it's happening. --~--~-~--~~~---~--~~ You received this message because

Re: Component Registration problem

2009-02-16 Thread Ayende Rahien
Write some reflection code? On Fri, Feb 13, 2009 at 7:29 PM, gcores cores.gust...@gmail.com wrote: Hi, I have a set of repository interfaces like this: IRepository = ARRepository IProductRepository = ARProductRepository where IProductRepository :

Re: High CPU Problems on a MonoRail application

2009-02-20 Thread Ayende Rahien
Can you repro this on dev machine? On Fri, Feb 20, 2009 at 1:07 PM, Gildas gildas.gar...@gmail.com wrote: Hi Andre, thanks for answering. I did answer minutes ago but it looks like google did not care... We use NH 2nd level cache a lot and the sql server process rarely move but I must

Re: High CPU Problems on a MonoRail application

2009-02-20 Thread Ayende Rahien
NHQG was gone... Not ready yet to switch to linq2NH ;-) Thanks -- Gildas On Feb 20, 6:46 pm, Ayende Rahien aye...@ayende.com wrote: what version? On Fri, Feb 20, 2009 at 12:19 PM, Gildas gildas.gar...@gmail.com wrote: Hi, We have a rather complex monorail/activerecord/rhino

Re: Trouble using CaptureFor component with brail

2009-02-21 Thread Ayende Rahien
Brail will try getting values from the property bag, then the request.You can create a filter to overwite the request paramter. On Sat, Feb 21, 2009 at 11:53 AM, Darin darin.dimit...@gmail.com wrote: I am using the CaptureFor component in order to insert some script declarations in the head

Re: Trouble using CaptureFor component with brail

2009-02-22 Thread Ayende Rahien
, IRailsEngineContext context, Controller controller) { controller.PropertyBag[javascript] = ??? return true; } } Could you please give me an example of this? On Feb 22, 3:55 am, Ayende Rahien aye...@ayende.com wrote: Brail will try getting values from the property bag

Re: Trouble using CaptureFor component with brail

2009-02-22 Thread Ayende Rahien
haven't found any side effects so far but if you think I am doing something terribly wrong I would like to know it. Then I will be left with no other choice but use filters. Thanks for spending your time reading this. Regards, Darin On Feb 22, 6:31 pm, Ayende Rahien aye...@ayende.com

Re: Supplying a dictionary as a runtime parameter when resolving a component fails

2009-02-23 Thread Ayende Rahien
please create an issue in donjon On Sun, Feb 22, 2009 at 11:50 AM, christianacca christian.crowhu...@btinternet.com wrote: This is quite surprising - I get a NotImplementException thrown when trying to ResolveT a component that has a dependency on a dictionary (either a Hasedtable or a

Re: Parser error

2009-02-24 Thread Ayende Rahien
Please send me your view. On Tue, Feb 24, 2009 at 12:50 PM, Adeel adeelsiddi...@gmail.com wrote: *** Because of a glitch with google/ gmail, this message did not appear in the list, so I am sending it again, if someone has already received this message, please do ignore it*** I upgraded

Re: Parser error

2009-02-25 Thread Ayende Rahien
occurs in the default.brail view of the layouts folder in exesto. Regards, Adeel On 24 feb, 19:23, Ayende Rahien aye...@ayende.com wrote: Please send me your view. On Tue, Feb 24, 2009 at 12:50 PM, Adeel adeelsiddi...@gmail.com wrote: *** Because of a glitch with google/ gmail

Re: Parser error

2009-02-25 Thread Ayende Rahien
The versions with Exesto On Wed, Feb 25, 2009 at 11:25 AM, Adeel adeelsiddi...@gmail.com wrote: Doe I use only the exesto version of Castle.MonoRail.Framework dll or all other assemblies of exesto too? On Feb 25, 7:25 pm, Ayende Rahien aye...@ayende.com wrote: Hm, that is interesting

Re: Parser error

2009-02-27 Thread Ayende Rahien
Looks like that might be the reason, yes. On Fri, Feb 27, 2009 at 7:56 AM, Martin Nilsson mffmar...@gmail.com wrote: If I change to my previous Boo.Lang.Compiler it's working again. Has Boo been upgraded? On Fri, Feb 27, 2009 at 1:36 PM, Martin Nilsson mffmar...@gmail.comwrote: I'm

Re: Expected IIS memory usage for e-commerce castle app

2009-03-03 Thread Ayende Rahien
that doesn't sound quite right, now On Tue, Mar 3, 2009 at 3:04 PM, Andrew and...@emertech.ie wrote: I've just launched an e-commerce website based on Monorail and using ActiveRecord. It's a replacement of a previous PHP solution and we have on average about 20 - 30 concurrent users at any

Re: Error Keys (components with specific keys)

2009-03-04 Thread Ayende Rahien
Add the ArrayResolver to the kernel. container.Kernel.Resolver.AddSubResolver(new ArrayResolver()); On Wed, Mar 4, 2009 at 11:22 AM, Lars Zeb larc...@yahoo.com wrote: I am new to Castle, trying to configure the container programmatically rather than with XML. I have an interface which has

Re: Windsor - Using embedded resource configuration file

2009-03-06 Thread Ayende Rahien
I think you can do that using an XmlInterpreter that takes a stream On Fri, Mar 6, 2009 at 4:31 AM, chitech khuon...@gmail.com wrote: Is it possible to make a instance of WindsorContainer with a xml contents as parameter. The windsor configuration file is a embedded resource and I would like

Re: Preventing the container to inject a property

2009-03-13 Thread Ayende Rahien
[DoNotWire] On Fri, Mar 13, 2009 at 1:51 PM, Mauro Servienti mauro.servie...@gmail.comwrote: Hy, I have a component (ISvcA) registered in the container, the ISvcA implementation has a property of type IMyComponent, the IMyComponent type is also registered in the container. I need to

Re: Accessing Windsor Container from Monorail Extension.

2009-03-22 Thread Ayende Rahien
((IContainerAccessor)HttpContext.Current.Application).Container On Mon, Mar 23, 2009 at 1:57 AM, James Curran james.cur...@gmail.comwrote: On Mar 22, 1:02 pm, Jason Meckley jasonmeck...@gmail.com wrote: so if you have an object which requires the IoC, add the kernel as a dependency. That

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.

Re: Best way of getting properties from the kernel?

2009-04-05 Thread Ayende Rahien
I think that you need to inspect the configuration On Sun, Apr 5, 2009 at 11:34 AM, Henrik hen...@haf.se wrote: Hello, I'm trying to inject properties into entities similar to MEF, but using the MicroKernel. What's the best way of resolving for a property (as in the lt;propertiesgt;

Re: Just constructor injection from fluent interface?

2009-04-09 Thread Ayende Rahien
You need to remove the PropertyInspector from the kernel On Thu, Apr 9, 2009 at 4:29 PM, Paul Hatcher pa...@grassoc.co.uk wrote: Is there a way of telling Castle not to wire up properties via the fluent interface, i.e. to just do constructor injection? I'm trying to register a group of

Re: Mixing external configuration with programatic registration

2009-04-13 Thread Ayende Rahien
yes On Mon, Apr 13, 2009 at 6:15 PM, Germán Schuager gschua...@gmail.comwrote: Hi, I'm using the fluent registration feature to scan several assemblies and register all the components that my application needs into the container. Now I'd like to specify in the configuration file some

Re: Mixing external configuration with programatic registration

2009-04-13 Thread Ayende Rahien
http://ayende.com/Blog/archive/2008/12/31/didja-know-merging-windsor-configuration-with-automatic-registration.aspx On Mon, Apr 13, 2009 at 6:30 PM, Germán Schuager gschua...@gmail.comwrote: How? On Mon, Apr 13, 2009 at 12:28 PM, Ayende Rahien aye...@ayende.com wrote: yes On Mon, Apr 13

Re: rounded corners in monorail views

2009-04-20 Thread Ayende Rahien
Daniel,This won't work: script type=text/javascript src=niftycube.js / It is a bug / feature in all browsers. This will work: script type=text/javascript src=niftycube.js /script I have never been able to find why. On Mon, Apr 20, 2009 at 4:19 PM, Daniel Soto daniel.sot...@gmail.comwrote:

Re: brail subviews sometimes don't update

2009-04-20 Thread Ayende Rahien
Can you enable logging and see what is going on? On Mon, Apr 20, 2009 at 4:34 PM, Jan Limpens jan.limp...@gmail.com wrote: Hello there, sometimes my views don't reflect a change, I made to a subview. I need to restart the app (touching web.config) to make the changes show. suboptimal.

Re: brail subviews sometimes don't update

2009-04-20 Thread Ayende Rahien
Castle.MonoRail.Views.Brail.BooViewEngine - Detected a change in Css\subview-head.brail, removing from complied cache but still changes, do not show until after a restart (and changes in layouts and views do show immediately) 2009/4/20 Ayende Rahien aye...@ayende.com Can you enable logging

Re: brail subviews sometimes don't update

2009-04-20 Thread Ayende Rahien
from the cache. 2009/4/20 Ayende Rahien aye...@ayende.com Oh, yes, of course.If the page is cached, even though the view has changed, Brail doesn't actually get notified about that until the next time we render the page (vs. serving it from the cache) On Mon, Apr 20, 2009 at 9:17 PM, Jan

Re: AR: Saving parent but not all children

2009-04-21 Thread Ayende Rahien
Flominator,A collection that large shouldn't be a collection On Tue, Apr 21, 2009 at 10:42 AM, Flominator flomina...@gmx.net wrote: Hi there, I use AR to store measurands which are in channels which are in a measurement: Part of Measurement.cs: [HasMany(typeof(Channel), Table =

Re: AR: Saving parent but not all children

2009-04-21 Thread Ayende Rahien
Remove the collection, make the association one directional On Tue, Apr 21, 2009 at 11:05 AM, Flominator flomina...@gmx.net wrote: What should it be then? On Apr 21, 9:47 am, Ayende Rahien aye...@ayende.com wrote: Flominator,A collection that large shouldn't be a collection On Tue, Apr

Re: AR: Saving parent but not all children

2009-04-21 Thread Ayende Rahien
Not if you have a collection of them.Remove the HasMany, basically On Tue, Apr 21, 2009 at 11:13 AM, Flominator flomina...@gmx.net wrote: Isn't this solution one directional? On Apr 21, 10:10 am, Ayende Rahien aye...@ayende.com wrote: Remove the collection, make the association one

Re: Invalid index for this SqlParameterCollection

2009-04-24 Thread Ayende Rahien
This looks like NH bug.Post this to nh users along with the hbm. On Fri, Apr 24, 2009 at 3:20 PM, bdaniel7 bdani...@gmail.com wrote: Hello, I have this situation: class Order { [HasMany( Inverse=true, Cascade=ManyRelationCascadeEnum.SaveUpdate)] public

Re: Aspect #

2009-04-27 Thread Ayende Rahien
It is deader than disco On Mon, Apr 27, 2009 at 5:00 PM, Eoin eointwhe...@gmail.com wrote: Hi, What is the status Aspect # in the Castle Project? Seems it's been deprecated/knocked on the head. Thanks, Eoin --~--~-~--~~~---~--~~ You received this

Re: fine grained declarative Interceptor configuration?

2009-04-27 Thread Ayende Rahien
no, you can't do that On Mon, Apr 27, 2009 at 7:14 PM, scott_m skmcfad...@msn.com wrote: The ability to specify which service methods an Interceptor should apply to (Not all or nothing). On Apr 27, 11:05 am, Ayende Rahien aye...@ayende.com wrote: what do you mean fine grained? On Mon

Re: fine grained declarative Interceptor configuration?

2009-04-27 Thread Ayende Rahien
for that should look like? Krzysztof Ayende Rahien pisze: no, you can't do that On Mon, Apr 27, 2009 at 7:14 PM, scott_m skmcfad...@msn.com mailto:skmcfad...@msn.com wrote: The ability to specify which service methods an Interceptor should apply to (Not all or nothing

Re: Aspect #

2009-04-28 Thread Ayende Rahien
Yes, that one was taken over, no one is doing anything with Aspect# On Tue, Apr 28, 2009 at 6:26 PM, Markus Zywitza markus.zywi...@gmail.comwrote: Even more dead than NHibernate Query Analyzerhttp://www.assembla.com/wiki/show/NHibernateQueryAnalyzer ? 2009/4/27 Ayende Rahien aye

Re: How to select with HQL a constant decimal value?

2009-04-28 Thread Ayende Rahien
Darius,Create another overload for the TurnoverRecord, that would be easiest On Wed, Apr 29, 2009 at 8:25 AM, Darius Damalakas darius.damala...@gmail.com wrote: I've tried again to use 0.0m, but here is what i've got: NHibernate.QueryException: undefined alias or unknown mapping: 0 This

Re: Profiling AR applications

2009-04-29 Thread Ayende Rahien
Usually, dotTrace with the HotSpots features give the best image of that On Wed, Apr 29, 2009 at 1:58 PM, Flominator flomina...@gmx.net wrote: I'm trying to find out what takes so much time. On 29 Apr., 11:49, Stefan Sedich stefan.sed...@gmail.com wrote: What are you trying to profile?

Windsor 2.0 Released!

2009-05-04 Thread Ayende Rahien
Hi everyone,Castle Windsor 2.0 RTM Releasedhttp://ayende.com/Blog/archive/2009/05/05/castle-windsor-2.0-rtm-released.aspx Have fun, ~ ayende --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users

Re: Open Source Projects that use Castle ActiveRecord?

2009-05-07 Thread Ayende Rahien
Rhino ToolsWinecellar On Thu, May 7, 2009 at 10:38 PM, Jonathan jon.car...@gmail.com wrote: Hi Everyone, I am looking for open source projects that currently use Castle ActiveRecord as part of their project. Anyone know of any? --~--~-~--~~~---~--~~ You

Re: windsor container question re: injection by context

2009-05-08 Thread Ayende Rahien
IHandlerSelector On Fri, May 8, 2009 at 7:41 PM, scott_m skmcfad...@msn.com wrote: I have a scenario where there are multiple classes using the same interface in their constructors for dependency injection: //main consumer classes where ISecurityTokenService dependency is injected by

Re: Registration Performance

2009-05-19 Thread Ayende Rahien
Juanma, Can you share what is causing the perf issue in the event? A lot of what Castle is doing is done inside that event handler On Tue, May 19, 2009 at 9:19 AM, Juanma gul...@gmail.com wrote: Hi, I have an app which register a lot of componentes ( 500) and performance during container

Re: WCF Per Operation Lifestyle, Child Containers?

2009-05-19 Thread Ayende Rahien
The lifestyle would be the preferred option, yes On Tue, May 19, 2009 at 10:10 AM, Thejuan aamills...@gmail.com wrote: What is the current guidance for services that are Per WCF Operation. Implement your own WCF Per Operation Lifestyle?

Re: Problem using Brail

2009-05-30 Thread Ayende Rahien
That wouldn't quite work, mostly because Boo's syntax support calling methods with no params. On Sun, May 31, 2009 at 3:45 AM, Henrik Feldt hen...@haf.se wrote: The best thing would be to only invokeBrail.ExpandDuckTypedExpressions_WorkaroundForDuplicateVirtualMethods.GetProperty when there

Re: Windsor 2.0/MicroKernel Additional Arguments

2009-06-03 Thread Ayende Rahien
If I remember correctly, it was removed because of the potential to create very fragile code.That is, you pass a value that only somewhere down the chain is used. That is almost certainly going to bite you at some point. You can provide our own ISubDependnecyResolver to resurrect this option,

Re: event fired twice

2009-06-05 Thread Ayende Rahien
I think that you get a call per table On Fri, Jun 5, 2009 at 10:27 PM, MattF mattjfen...@gmail.com wrote: i have been discussing this on the NH group aswell because i am not sure if it is a NH bug or an AR bug (or if is supposed to happen) my problem is that i am using an IPostUpdatEvent to

Re: [Windsor] Lazy initialization for a dependent component - possible ?

2009-06-15 Thread Ayende Rahien
You need to create a proxy class for that, should be pretty easy to build On Mon, Jun 15, 2009 at 8:58 AM, Lukasz Podolak lukasz.podo...@gmail.comwrote: Hello, I would like to ask, whether is it possible to configure Windsor so that one of my dependency for a component that is being injected

Re: Windsor Kernel thread safety in a web environment?

2009-06-16 Thread Ayende Rahien
As far as we know, Windsor is thread safe.How are you seeing two instances in a single web request? On Tue, Jun 16, 2009 at 2:18 AM, julianjelfs julian.je...@googlemail.comwrote: Hi, I am seeing some strange behaviour in my web application when using the PerWebRequest lifestyle in that very

Re: Windsor Kernel thread safety in a web environment?

2009-06-16 Thread Ayende Rahien
with my diagnosis: http://julianjelfs.wordpress.com/2009/06/16/nasty-problem-with-perwebrequest-lifestyle-objects/ Now who can I blame for puting the bootstrapping in the Global constructor . :) Julian. On Jun 16, 4:01 pm, Ayende Rahien aye...@ayende.com wrote: As far as we know, Windsor

Re: externalizing services

2009-06-19 Thread Ayende Rahien
take a look at rhino service bus On Fri, Jun 19, 2009 at 9:08 PM, Jan Limpens jan.limp...@gmail.com wrote: Hello, recently I got bitten quite badly by dependencies on services and I want to keep them away as much as possible from the site. What happened, was, that within a db transaction,

Re: Register IEnumerableTSomething in the container

2009-06-21 Thread Ayende Rahien
Can you show the problematic code? On Fri, Jun 19, 2009 at 11:36 PM, Vadimmer vadimkanto...@gmail.com wrote: I would like to register IEnumerableTSomething in a container and then resolve it as IEnumerableTSomething. At the moment Windsor prevents me from doing so as it considers

Re: Registration Performance

2009-06-23 Thread Ayende Rahien
:03 PM, Ayende Rahien aye...@ayende.com wrote: Juanma, Can you share what is causing the perf issue in the event? A lot of what Castle is doing is done inside that event handler On Tue, May 19, 2009 at 9:19 AM, Juanma gul...@gmail.com wrote: Hi, I have an app which register a lot

  1   2   3   >