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); }
public static Task UpdateProcessedSuggestions([NotNull] ProcessedSuggestionEntity processedSuggestion, int retries = -1) { if (processedSuggestion == null) { throw new ArgumentNullException(nameof(processedSuggestion)); } return(UpdateProcessedSuggestionsInternal(processedSuggestion, retries)); }
public static Task <ConcurrentBag <ProcessedSuggestionEntity> > GetAllProcessedSuggestions(string rowFilter = null, int retries = -1) { return(GetAllSteamToHltbEntities <ProcessedSuggestionEntity>( rowFilter ?? ProcessedSuggestionEntity.ProcessedSuggestionFilter, ProcessedSuggestionEntity.GetPartitions(), retries)); }