Beispiel #1
0
 public void Dispose()
 {
     Logger?.LogDebug("Disposing of FtpClient");
     Task.WaitAny(LogOutAsync());
     ControlStream?.Dispose();
     dataSocketSemaphore?.Dispose();
 }
Beispiel #2
0
 public void Dispose()
 {
     DataStream?.Close();
     DataStream?.Dispose();
     ControlStream?.Close();
     ControlStream?.Dispose();
     IsAlive = false;
 }