public void WillRecoverFromAnUnhandledExceptionAsynchronously()
{
windsorContainer.Register(
Component.For<IOperationsEx>()
.Named("operations")
.AsWcfClient(new DefaultClientModel()
{
Endpoint = WcfEndpoint
.BoundTo(new NetTcpBinding { PortSharingEnabled = true })
.At("net.tcp://localhost/Operations/Ex")
})
);
var client = windsorContainer.Resolve<IOperationsEx>("operations");
try
{
client.BeginWcfCall(p => p.ThrowException()).End();
}
catch (Exception)
{
client.BeginWcfCall(p => p.Backup(new Dictionary<string, object>())).End();
}
}