Beispiel #1
0
 public void Start(StatusMethod _statusMethod = null)
 {
     if (!isRunning)
     {
         statusMethod = _statusMethod;
         isRunning    = true;
         ConnectToDB();
     }
 }
Beispiel #2
0
 public void Start(StatusMethod _statusMethod = null)
 {
     if (!isRunning)
     {
         isRunning    = true;
         statusMethod = _statusMethod;
         StartClientThread();
     }
     else
     {
         Console.WriteLine("ClientNet: Server already running");
         _statusMethod?.Invoke(false);
     }
 }