IWebDavStoreItemLockInstance.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using System;
  2. using System.Xml;
  3. using WebDAVSharp.Server.Stores.Locks.Enums;
  4. namespace WebDAVSharp.Server.Stores.Locks.Interfaces
  5. {
  6. /// <summary>
  7. /// </summary>
  8. public interface IWebDavStoreItemLockInstance
  9. {
  10. /// <summary>
  11. /// The Path locked
  12. /// </summary>
  13. string Path { get; }
  14. /// <summary>
  15. /// </summary>
  16. IWebDavStoreItemLock LockSystem { get; set; }
  17. /// <summary>
  18. /// Lock Scope
  19. /// </summary>
  20. WebDavLockScope LockScope { get; }
  21. /// <summary>
  22. /// </summary>
  23. double? RequestedLockTimeout { get; set; }
  24. /// <summary>
  25. /// </summary>
  26. DateTime CreateDate { get; set; }
  27. /// <summary>
  28. /// Lock Type
  29. /// </summary>
  30. WebDavLockType LockType { get; }
  31. /// <summary>
  32. /// Owner
  33. /// </summary>
  34. string Owner { get; }
  35. /// <summary>
  36. /// Requested Timeout
  37. /// </summary>
  38. string RequestedTimeout { get; set; }
  39. /// <summary>
  40. /// Token Issued
  41. /// </summary>
  42. Guid? Token { get; set; }
  43. /// <summary>
  44. /// Request Document
  45. /// </summary>
  46. XmlDocument RequestDocument { get; }
  47. /// <summary>
  48. /// If null, it's an infinite checkout.
  49. /// </summary>
  50. DateTime? ExpirationDate { get; set; }
  51. /// <summary>
  52. /// </summary>
  53. int Depth { get; }
  54. /// <summary>
  55. /// Refreshes a lock
  56. /// </summary>
  57. /// <param name="requestedlocktimeout"></param>
  58. void RefreshLock(double? requestedlocktimeout);
  59. }
  60. }