For the following class :
public class MyClass
{
private WebServiceHost m_WebServiceHost;
}
I need to trace the uri it was initialized with. I have implemented that method:
public void MyTrace()
{
Trace.TraceInformation("URI {0}",m_WebServiceHost.BaseAddresses);
}
But I get :
URI System.Collections.ObjectModel.ReadOnlyCollection`1[System.Uri]
What is wrong?