Hi,
I have a WCF service, which I can open and close by doing:
the issue is that while the MyServicehost is operational, ie up and running, I need to destroy it, and create a new service host:Code:Dim myService As MyServicehost = New MyServiceHost() myService.Open() myService.Close()
The problem with this is I have "downtime" of the service in between myService.Close() and newService.Open(). if anyone tries to connect while this is happening it fails.Code:Dim myService As MyServiceHost = New MyServiceHost() myService.Open() Dim newService As MyServiceHost = New MyServiceHost() myService.Close() newService.Open()
how can I make the "downtime" as small as possibel?
Make sense?
Woka





Reply With Quote