Exemple #1
0
 protected override void StartModule()
 {
     try
     {
         Logger.Info("Welcome to NewCamd");
         _settings.Load();
         _keyblock.Prepare();
         StartServer();
         _listeningThread = _threadHelper.RunSafeInNewThread(Listen, Logger);
     }
     catch (Exception ex)
     {
         Logger.Fatal($"An unhandled exception occured: {ex.Message}", ex);
         Error();
     }
 }
Exemple #2
0
 void HandleClient()
 {
     _keyblock.Prepare();
     _communication.Start(_client);
 }