Exemple #1
0
        public Operation(RequestExecutor requestExecutor, Func <IDatabaseChanges> changes, DocumentConventions conventions, long id)
        {
            _requestExecutor = requestExecutor;
            _changes         = changes;
            _conventions     = conventions;
            _id = id;

            StatusFetchMode = _conventions.OperationStatusFetchMode;
            _isProcessing   = true;
        }
Exemple #2
0
        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;
        }