NuGet.Services.Work.InvocationResult.Completed C# (CSharp) Method

Completed() public static method

public static Completed ( ) : InvocationResult
return InvocationResult
        public static InvocationResult Completed()
        {
            return new InvocationResult(ExecutionResult.Completed);
        }

Same methods

InvocationResult::Completed ( System.TimeSpan rescheduleIn ) : InvocationResult

Usage Example

Beispiel #1
0
        protected internal override async Task <InvocationResult> Invoke()
        {
            try
            {
                await Execute();

                return(InvocationResult.Completed());
            }
            catch (Exception ex)
            {
                return(InvocationResult.Faulted(ex));
            }
        }
All Usage Examples Of NuGet.Services.Work.InvocationResult::Completed