On a client/server system, I am using the Fluent API to register
services on the server side and expose them with the remoting facility
like this:
container.Register(AllTypes
.FromAssemblyNamed("Assembly")
.Pick()
.If(t =>
(t.Name.EndsWith("Service")))
.WithService
.AllInterfaces()
.Configure(c =>
c.Named(c.ServiceType.FullName)
.AddAttributeDescriptor("remoteserver",
"component")));
This works absolutely fine.
On the client-side, I would like to do the same: Use the Fluent API to
register remote components. I have tried this:
container.Register(AllTypes
.FromAssemblyNamed("Assembly")
.Pick()
.WithService
.AllInterfaces()
.Configure(c => c
.Named(c.ServiceType.FullName)
.AddAttributeDescriptor("remoteclient",
"component")
.AddAttributeDescriptor("skipRemotingRegistration",
"false")));
But the client code calls the locally hosted service instead of the
remote one.
Is there a way to do this?
--
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.