Пример #1
0
        public async Task <IEnumerable <IRequestsLogRecord> > GetRecords(string clientId, DateTime @from, DateTime to)
        {
            var partitionKey = RequestsLogRecord.GeneratePartitionKey(clientId);

            return(await _tableStorage.WhereAsync(partitionKey, @from, to.Date.AddDays(1), ToIntervalOption.ExcludeTo));
        }
Пример #2
0
        public Task WriteAsync(string clientId, string url, string request, string response, string userAgent)
        {
            var newEntity = RequestsLogRecord.Create(clientId, url, request, response, userAgent);

            return(_tableStorage.InsertAndGenerateRowKeyAsDateTimeAsync(newEntity, newEntity.DateTime));
        }