public override async Task Process(Controller controller) { var transaction = controller.TransactionManagager.FindTransaction(data.txId); IResultCursor cursor = await transaction.RunAsync(data.cypher, data.parameters).ConfigureAwait(false); var result = new Result() { Results = cursor }; ObjManager.AddProtocolObject(result); ResultId = result.uniqueId; }
public override async Task Process() { try { var transaction = ((SessionReadTransaction)ObjManager.GetObject(data.txId)).Transaction; IResultCursor cursor = await transaction.RunAsync(data.cypher, data.parameters); var result = new Result() { Results = cursor }; ObjManager.AddProtocolObject(result); ResultId = result.uniqueId; } catch (Exception ex) { throw new Exception($"Failed to Process TransactionRun protocol object, failed with - {ex.Message}"); } }
public override async Task Process() { try { var newSession = (NewSession)ObjManager.GetObject(data.sessionId); IResultCursor cursor = await newSession.Session.RunAsync(data.cypher, data.parameters).ConfigureAwait(false); var result = new Result() { Results = cursor }; ObjManager.AddProtocolObject(result); ResultId = result.uniqueId; } catch (Exception ex) { throw new Exception($"Failed to Process SessionRun protocol object, failed with - {ex.Message}"); } }