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)); }
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)); }