public Operation(RequestExecutor requestExecutor, Func <IDatabaseChanges> changes, DocumentConventions conventions, long id) { _requestExecutor = requestExecutor; _changes = changes; _conventions = conventions; _id = id; StatusFetchMode = _conventions.OperationStatusFetchMode; _isProcessing = true; }
internal Operation(RequestExecutor requestExecutor, Func <IDatabaseChanges> changes, DocumentConventions conventions, long id, string nodeTag, Task additionalTask) { _requestExecutor = requestExecutor; _changes = changes; _conventions = conventions; _additionalTask = additionalTask ?? Task.CompletedTask; _id = id; NodeTag = nodeTag; StatusFetchMode = _conventions.OperationStatusFetchMode; _isProcessing = true; }