コード例 #1
0
 private void Listen()
 {
     InitializeRootFileList();
     Http2Logger.LogInfo("Started on port " + _port);
     _server.Start();
     while (!_disposed)
     {
         try
         {
             var client = new HttpConnectingClient(_server, _options, _next, _useHandshake, _usePriorities, _useFlowControl, _listOfRootFiles);
             client.Accept();
         }
         catch (Exception ex)
         {
             Http2Logger.LogError("Unhandled exception was caught: " + ex.Message);
         }
     }
 }
コード例 #2
0
 private void Listen()
 {
     InitializeRootFileList();
     Http2Logger.LogInfo("Started on port " + _port);
     _server.Start();
     while (!_disposed)
     {
         try
         {
             var client = new HttpConnectingClient(_server, _options, _next, _useHandshake, _usePriorities, _useFlowControl, _listOfRootFiles);
             client.Accept();
         }
         catch (Exception ex)
         {
             Http2Logger.LogError("Unhandled exception was caught: " + ex.Message);
         }
     }
 }