Question

I am hosting my WCF Services in a Managed Application.
I use ServiceHost class for this.

Regarding the class I am hosting inside the ServiceHost, should implement IDispoable ? When it will be called if i implemented :IDisposable ?
When i call servicehost.Close() ?

Was it helpful?

Solution

The main reason to implement IDisposable is if your class wraps an unmanaged resource.

Whether this is inside ServiceHost has no bearing.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top