Bracket.Hosting.SystemWeb.SimpleWebServer.SimpleWebServer C# (CSharp) 메소드

SimpleWebServer() 공개 메소드

public SimpleWebServer ( ) : System
리턴 System
        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));
        }