Skip to content

Commit 1da0974

Browse files
committed
🎉 feat(options): 添加序列化生成器和属性ID到交易选项类
1 parent 65e51cc commit 1da0974

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
namespace Vertex.Transaction.Options
1+
using Orleans;
2+
3+
namespace Vertex.Transaction.Options
24
{
5+
[GenerateSerializer]
36
public class VertexDtxOptions
47
{
8+
[Id(0)]
59
public int RetainedTxEvents { get; set; } = 30;
610
}
711
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
namespace Vertex.Transaction.Options
1+
using Orleans;
2+
3+
namespace Vertex.Transaction.Options
24
{
5+
[GenerateSerializer]
36
public class VertexTxOptions
47
{
58
/// <summary>
69
/// Transaction timeout time(default is 30s)
710
/// </summary>
11+
[Id(0)]
812
public int TxSecondsTimeout { get; set; } = 30;
913
}
1014
}

0 commit comments

Comments
 (0)