using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NuGetGallery.Operations.Infrastructure { /// /// Provides an interface to a task which kicks off an asynchronous job to be checked on later /// public interface IAsyncCompletionTask { bool DoNotPoll { get; set; } TimeSpan MaximumPollingLength { get; } TimeSpan RecommendedPollingPeriod { get; } bool PollForCompletion(); } }