Exemplo n.º 1
0
        public async Task <IAvailableSelections> GetAvailableSelectionsAsync(URN eventId)
        {
            if (eventId == null)
            {
                throw new ArgumentNullException(nameof(eventId));
            }

            try
            {
                _clientLog.Info($"Invoking CustomBetManager.GetAvailableSelectionsAsync({eventId})");
                return(await _dataRouterManager.GetAvailableSelectionsAsync(eventId).ConfigureAwait(false));
            }
            catch (CommunicationException ce)
            {
                _executionLog.Warn($"Event[{eventId}] getting available selections failed, CommunicationException: {ce.Message}");
                throw;
            }
            catch (Exception e)
            {
                _executionLog.Warn($"Event[{eventId}] getting available selections failed.", e);
                throw;
            }
        }