NuGet.Services.Work.InvocationQueue.Complete C# (CSharp) Метод

Complete() публичный Метод

Acknowledges that the request has completed successfully, removing the message from the queue.
public Complete ( InvocationState invocation, ExecutionResult result, string resultMessage, string logUrl ) : Task
invocation InvocationState
result ExecutionResult
resultMessage string
logUrl string
Результат Task
        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);
        }