Ejemplo n.º 1
0
        private async Task <BulkInsertAbortedException> GetExceptionFromOperation()
        {
            var stateRequest = new GetOperationStateOperation.GetOperationStateCommand(_requestExecutor.Conventions, _operationId);
            await _requestExecutor.ExecuteAsync(stateRequest, _context, sessionInfo : null, token : _token).ConfigureAwait(false);

            if (!(stateRequest.Result?.Result is OperationExceptionResult error))
            {
                return(null);
            }
            return(new BulkInsertAbortedException(error.Error));
        }
Ejemplo n.º 2
0
        private async Task <BulkInsertAbortedException> GetExceptionFromOperation()
        {
            var stateRequest = new GetOperationStateOperation.GetOperationStateCommand(_operationId, _nodeTag);

            await ExecuteAsync(stateRequest, token : _token).ConfigureAwait(false);

            if (!(stateRequest.Result?.Result is OperationExceptionResult error))
            {
                return(null);
            }
            return(new BulkInsertAbortedException(error.Error));
        }