示例#1
0
        private static async Task UpdateProcessedSuggestionsInternal([NotNull] ProcessedSuggestionEntity processedSuggestion, int retries)
        {
            var table = await GetTable(SteamToHltbTableName, retries).ConfigureAwait(false);

            CommonEventSource.Log.UpdateProcessedSuggestionStart(processedSuggestion.SteamAppId, processedSuggestion.HltbId);
            await table.ExecuteAsync(TableOperation.InsertOrReplace(processedSuggestion));

            CommonEventSource.Log.UpdateProcessedSuggestionStop(processedSuggestion.SteamAppId, processedSuggestion.HltbId);
        }
示例#2
0
        public static Task UpdateProcessedSuggestions([NotNull] ProcessedSuggestionEntity processedSuggestion, int retries = -1)
        {
            if (processedSuggestion == null)
            {
                throw new ArgumentNullException(nameof(processedSuggestion));
            }

            return(UpdateProcessedSuggestionsInternal(processedSuggestion, retries));
        }
示例#3
0
 public static Task <ConcurrentBag <ProcessedSuggestionEntity> > GetAllProcessedSuggestions(string rowFilter = null, int retries = -1)
 {
     return(GetAllSteamToHltbEntities <ProcessedSuggestionEntity>(
                rowFilter ?? ProcessedSuggestionEntity.ProcessedSuggestionFilter, ProcessedSuggestionEntity.GetPartitions(), retries));
 }