public void HandleRequest(IRequest request) { var orderz = _marketOrderRepository.GetOrdersToCleanup().ToList(); Logger.Info(orderz.Count + " market orders to clean up. "); foreach (var marketOrder in orderz) { marketOrder.Cancel(_marketOrderRepository); } Message.Builder.FromRequest(request).WithOk().Send(); }