コード例 #1
0
        public void LogStats(string provider, string queryString, int page, int rank)
        {
            _log.LogInformation("Stashing the results in Cosmos...");
            SearchStats stats = new SearchStats()
            {
                _searchProvider = provider,
                _queryString    = queryString,
                _resultPage     = page,
                _rank           = rank
            };

            _cosmosHelper.AddStat(stats);
        }
コード例 #2
0
 public void AddStat(SearchStats stats)
 {
     _statsContainer.CreateItemAsync(stats).GetAwaiter().GetResult();
 }