public virtual async Task<bool> Complete(InvocationState invocation, ExecutionResult result, string resultMessage, string logUrl)
{
// Try to complete the row
var newVersion = await ConnectAndExec(
"work.CompleteInvocation",
new
{
Id = invocation.Id,
Version = invocation.CurrentVersion,
Result = (int)result,
ResultMessage = resultMessage,
LogUrl = logUrl,
InstanceName = InstanceName
});
return ProcessResult(invocation, newVersion);
}