private void CancelAllCorporationOrders(Character member) { var orderz = _marketOrderRepository.GetOrdersOnCorporationLeave(member).ToList(); Logger.Info($"{orderz.Count} market orders to clean up on character corp leave. {this}"); foreach (var marketOrder in orderz) { try { marketOrder.Cancel(_marketOrderRepository); } catch (Exception ex) { Logger.Error("trouble with market order: " + marketOrder); Logger.Exception(ex); } } }