Currently there's no _nice_ API to configure the facility programmatically.
You'd have to:
- create configuration (MutableConfiguration object) for the facility
and add it to configuration subsystem,
- add the facility to the container,
- add required attributes (AddDescriptor method) to remotable components
when registering them.
and you should be good to go.
Krzysztof
On 2010-04-06 22:14, Brian Chan wrote:
Hi all,
I was looking through the remoting example and want to modify it so
that the configuration is programmatically created.
Can someone tell me how I can register these programmitcally?
<facility
id="remoting"
type="Castle.Facilities.Remoting.RemotingFacility, Castle.MicroKernel"
isClient="true"
remoteKernelUri="tcp://localhost:2133/kernel.rem" />
<component
id="businessservice"
service="CastleRemoting.API.IBusinessService, CastleRemoting.API"
type="System.Object, mscorlib"
remoteclient="component" />
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Castle Project Users" group.
To post to this group, send email to
castle-project-us...@googlegroups.com.
To unsubscribe from this group, send email to
castle-project-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Castle
Project Users" group.
To post to this group, send email to castle-project-us...@googlegroups.com.
To unsubscribe from this group, send email to
castle-project-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.