Yes,
In your facility:
Public override Init()
{
Kernel.Register(Component.For<IMyService>().ImplementedBy<MyServiceImpl>().P
arameters(Parameter.ForKey("keyName").Eq(somevalue)));
}
You can use #{ id } too afaik.
From: [email protected]
[mailto:[email protected]] On Behalf Of Mauro Servienti
Sent: den 7 april 2009 06:27
To: [email protected]
Subject: "Registering" properties via code
Hi,
Is there a way to register properties in castle configuration via code,
using eg. Fluent Interfaces?
.m
______________________________________________________________
Mauro Servienti | [email protected] | Microsoft MVP - Visual C# /
MCP
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---