Hi Marc,
Comments inline>>>
> What is your server setup? You mention session, so I'm guessing it is
> fairly simple (1 server?) [session doesn't scale "out" very well].. in
> which case WCF will offer synchronization at the server for free.
I'm not running the server, it's our "On Demand" web based ERP/CRM
application. I'm pretty sure they are running Oracle on linux, but could be
wrong.
> Alternatively, WCF might also provide options at the client to perform
> sync - in particular I'm thinking about custom behaviors and
[quoted text clipped - 7 lines]
> that the service can detect and read from a db [but which is islotated
> from the comms stack].
This all sounds really cool, but I don't think it's an option for me (not my
server). I shoud have mentioned that in the original post, apologies.
> Alterantively, you could use a form of factory / dependency injection
> here... for instance, something like (where ILease<T> is just
[quoted text clipped - 5 lines]
> string wossit = svc.Service.Bar("Fred", "Wilma");
> }
Interesting. You suggest the Factory to support multiple service objects?
In my case, I have only the one service I'm working with, so I don't think I
would need a factory.
> In this usage, you could obtain the lock during GetLease(), and free
> the lock during Dispose(). But I'm assuming the above would use
[quoted text clipped - 6 lines]
>
> Just some thoughts...
I suspect I might have sent you in the wrong direction with my original
post. I'm interested in find a solution on the client side that will allow
me to share a single session between many objects.
I'm trying to think of another way to phrase it but can't really.
I will tinker around mocking up some pseudo code to illustrate what I'm
trying to do and post later.
Thanks for the reply and suggestions, I wish I was in control of the service
so I could explore your suggestions, they sound slick!
-Steve