IQueueProvider.cs 382 B

123456789101112131415
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. namespace Quadarax.Foundation.Core.Business.ProcessQueue
  5. {
  6. public interface IQueueProvider : IDisposable
  7. {
  8. bool IsOpen { get; }
  9. IQueryable<IQueueItem> Query();
  10. void UpdateAndCommit(IEnumerable<IQueueItem> items);
  11. void Open();
  12. void Close();
  13. }
  14. }