private void WriteMarketOutcomeMappings(int marketId, IOutcome outcome) { var mappedOutcomes = _taskProcessor.GetTaskResult(outcome.GetMappedOutcomeIdsAsync()); if (mappedOutcomes == null) { _log.Debug($"\tOutcome for market={marketId} and outcomeId={outcome.Id} has no outcome mapping!"); return; } var outcomeMappings = mappedOutcomes.ToList(); if (!outcomeMappings.Any()) { _log.Debug($"\tOutcome for market={marketId} and outcomeId={outcome.Id} has no outcome mapping!"); return; } foreach (var mappedOutcome in outcomeMappings) { _log.Debug($"\tOutcome for market={marketId} and outcomeId={outcome.Id} is mapped to [Id:{mappedOutcome.Id}, Name:'{mappedOutcome.GetName(_culture)}']."); } }