public override void Teardown() { try { if (_connection2 != null) { AsyncContext.Run(() => _connection2.Disconnect()); } if (_connection != null) { AsyncContext.Run(() => _connection.Disconnect()); } } finally { if (_fayeServerProcess.Started) { _fayeServerProcess.GracefulShutdown(); } if (_socatInterceptor != null && !_socatInterceptor.HasExited) { _socatInterceptor.Kill(); } if (File.Exists(ReconnectFilePath)) { File.Delete(ReconnectFilePath); } } base.Teardown(); }
public override void Teardown() { if (_connection != null) { AsyncContext.Run(() => _connection.Disconnect()); } if (_fayeServerProcess.Started) { _fayeServerProcess.GracefulShutdown(); } base.Teardown(); }