Beispiel #1
0
 public void UpdateLastModified(RavenJObject metadata, DateTimeOffset when)
 {
     // internally keep last modified date with millisecond precision
     metadata[Constants.LastModified]      = when;
     metadata[Constants.RavenLastModified] = when;
     metadata[Constants.MetadataEtagField] = new RavenJValue(uuidGenerator.CreateSequentialUuid());
 }
Beispiel #2
0
 public void UpdateLastModified(RavenJObject metadata)
 {
     // internally keep last modified date with millisecond precision
     metadata["Last-Modified"] = DateTime.UtcNow.ToString("d MMM yyyy H:m:s.fffff 'GMT'", CultureInfo.InvariantCulture);
     metadata["ETag"]          = new RavenJValue(uuidGenerator.CreateSequentialUuid());
 }