Esempio n. 1
0
        public SimpleWebServer Build()
        {
            var options = new SimpleWebServerOption();

            _optionsConfig(options);
            return(new SimpleWebServer(options));
        }
Esempio n. 2
0
 public SimpleWebServer(SimpleWebServerOption options)
 {
     _options = options ?? throw new ArgumentNullException(nameof(options));
     if (_options.RequestReceived != null)
     {
         RequestReceived += _options.RequestReceived;
     }
 }