public void Stop() { if (!(_sftpClient is null) && _sftpClient.IsConnected) { _sftpClient.Disconnect(); } if (!(_virtInstance is null)) { try { _virtInstance.StopVirtualizing(); } catch { } } VirtualizationDirectory.Refresh(); if (VirtualizationDirectory.Exists) { VirtualizationDirectory.Delete(true); } }
public void Stop() { if (!(SftpClient is null) && SftpClient.IsConnected) { SftpClient.Disconnect(); } if (!(virtualization is null)) { try { virtualization.StopVirtualizing(); } catch {} } VirtualizationDirectory.Refresh(); if (VirtualizationDirectory.Exists) { VirtualizationDirectory.Delete(true); } }