I am rather new to Castle so I might be asking a very trivial
question. Anyway:
My GUI application uses NetNamedPipes for communicating with the
server backend. The WCF has a timeout on its sessions. So what I want
is a proxy class that encapsulates the WCF service and reconnects to
backend automatically if the connection is lost on method invocation.
I did not find any solution in the WCF framework so my idéa is to use
DynamicProxy. However i need to set the "inner class" before invoking
Procede().
So the logic I am looking for is:
public void Intercept(IInvocation invocation)
{
try {
invocation.Proceed();
} catch ( Exception e){
"innerclass" = CreateMyInnerServiceInterfaceClient(); //Will
reconnect
invocation.Proceed();
}
}
Is this possible?
Or am I going down the wrong road here?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---