public void DocumentToEntity(string key, object entity, Raven.Json.Linq.RavenJObject document, Raven.Json.Linq.RavenJObject metadata) { ITrackChange e = entity as ITrackChange; if( e != null) { e.ModifiedTime = metadata.Value<DateTime>("Last-Modified"); } }
public override ReadVetoResult AllowRead(string key, Raven.Json.Linq.RavenJObject metadata, ReadOperation operation, Raven.Abstractions.Data.TransactionInformation transactionInformation) { if (operation != ReadOperation.Index) return ReadVetoResult.Allowed; if (metadata.Value<string>(PublishedVersioningConstants.AtisDocumentRevisionStatus) == "Historical") return ReadVetoResult.Ignore; return ReadVetoResult.Allowed; }