public SimpleWebServer(params string[] listenerUris)
{
if (!HttpListener.IsSupported)
{
throw new NotSupportedException("The HttpListener class is not supported on this operating system.");
}
if (listenerUris == null || listenerUris.Length < 1)
{
throw new ArgumentNullException("listenerUris");
}
UniqueId = Guid.NewGuid();
_listener = new HttpListener();
Array.ForEach(listenerUris,prefixUri=> _listener.Prefixes.Add(prefixUri));
}