using System; using System.Threading; using System.Threading.Tasks; namespace RMuseum.Services { public interface IBackgroundTaskQueue { void QueueBackgroundWorkItem(Func workItem); Task> DequeueAsync( CancellationToken cancellationToken); int Count { get; } } }