IPostable.cs 642 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace InABox.Core
  5. {
  6. /// <summary>
  7. /// Flags an <see cref="Entity"/> as "Postable"; that is, it can be processed by an <see cref="IPoster{TEntity,TSettings}"/>.
  8. /// </summary>
  9. public interface IPostable
  10. {
  11. /// <summary>
  12. /// At what time this <see cref="IPostable"/> was processed. Set to <see cref="DateTime.MinValue"/> if not processed yet.
  13. /// When the <see cref="IPostable"/> is processed, this should be updated, so that we don't process things twice.
  14. /// </summary>
  15. DateTime Posted { get; set; }
  16. }
  17. }