internal QueryRow(string documentId, long sequence, object key, object value, RevisionInternal revision, IQueryRowStore storage) { // Don't initialize _database yet. I might be instantiated on a background thread (if the // query is async) which has a different CBLDatabase instance than the original caller. // Instead, the database property will be filled in when I'm added to a CBLQueryEnumerator. SourceDocumentId = documentId; SequenceNumber = sequence; _key = key; _value = value; _documentRevision = revision; _storage = storage; }
internal QueryRow(string documentId, long sequence, object key, object value, RevisionInternal revision, IQueryRowStore storage) { // Don't initialize _database yet. I might be instantiated on a background thread (if the // query is async) which has a different CBLDatabase instance than the original caller. // Instead, the database property will be filled in when I'm added to a CBLQueryEnumerator. SourceDocumentId = documentId; SequenceNumber = sequence; _key = key; _value = value; _documentRevision = revision; _storage = storage; }