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

Completed() public static method

public static Completed ( System.TimeSpan rescheduleIn ) : InvocationResult
rescheduleIn System.TimeSpan
return InvocationResult
        public static InvocationResult Completed(TimeSpan rescheduleIn)
        {
            return new InvocationResult(ExecutionResult.Completed, rescheduleIn);
        }

Same methods

InvocationResult::Completed ( ) : 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