From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点
---
Aging.Infrastructure/Contracts/IOperationLease.cs | 40 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/Aging.Infrastructure/Contracts/IOperationLease.cs b/Aging.Infrastructure/Contracts/IOperationLease.cs
new file mode 100644
index 0000000..a8611f6
--- /dev/null
+++ b/Aging.Infrastructure/Contracts/IOperationLease.cs
@@ -0,0 +1,40 @@
+namespace Aging.Infrastructure.Contracts
+{
+ /// <summary>
+ /// 鐭湡鎿嶄綔绉熺害鎺ュ彛銆�
+ /// 鍦ㄦ墽琛屽叿浣撶‖浠舵搷浣滃墠鑾峰彇锛岀‘淇濇搷浣滄湡闂磋祫婧愪笉琚姠鍗犮��
+ /// 鏀寔鍚屾鍜屽紓姝ラ噴鏀俱��
+ /// </summary>
+ public interface IOperationLease : IDisposable, IAsyncDisposable
+ {
+ /// <summary>
+ /// 绉熺害鍞竴鏍囪瘑
+ /// </summary>
+ string LeaseId { get; }
+
+ /// <summary>
+ /// 绉熺害鍏宠仈鐨勮祫婧愰敭
+ /// </summary>
+ ResourceKey Resource { get; }
+
+ /// <summary>
+ /// 绉熺害鎵�鏈夎�呬护鐗�
+ /// </summary>
+ ResourceOwnerToken Owner { get; }
+
+ /// <summary>
+ /// 绉熺害鑾峰彇鏃堕棿
+ /// </summary>
+ DateTime AcquiredAt { get; }
+
+ /// <summary>
+ /// 绉熺害杩囨湡鏃堕棿锛堝彲閫夛級
+ /// </summary>
+ DateTime? ExpiresAt { get; }
+
+ /// <summary>
+ /// 绉熺害鏄惁浠嶇劧鏈夋晥
+ /// </summary>
+ bool IsValid { get; }
+ }
+}
--
Gitblit v1.9.1