public async Task SaveAsync() { _logger.LogInformation($"Start saving cursor to {{{TraceConstant.Url}}}...", _cursorBlob.Uri); var cursorObject = new JObject { { "lastCreated", LastCreated?.ToString("O") }, { "lastEdited", LastEdited?.ToString("O") }, }; var json = cursorObject.ToString(); await _cursorBlob.UploadTextAsync(json); _cursorBlob.Properties.ContentType = "application/json"; await _cursorBlob.SetPropertiesAsync(); _logger.LogInformation($"Cursor value: {{{TraceConstant.CursorValue}}}", json); _logger.LogInformation($"Finished saving cursor to {{{TraceConstant.Url}}}.", _cursorBlob.Uri); }
public bool CanUseDiff() { return(!LastCreated.IsNullOrEmpty()); }