-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
增加Command接口定义;扩展ITransactionInitiator接口属性
- Loading branch information
Showing
11 changed files
with
204 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/Eventual2PC/Commands/ITransactionInitiatorAddCommittedParticipantCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace Eventual2PC.Commands | ||
{ | ||
/// <summary> | ||
/// 事务发起方添加已提交的参与方 | ||
/// </summary> | ||
public interface ITransactionInitiatorAddCommittedParticipantCommand | ||
{ | ||
/// <summary> | ||
/// 事务ID | ||
/// </summary> | ||
string TransactionId { get; } | ||
|
||
/// <summary> | ||
/// 事务类型 | ||
/// </summary> | ||
byte TransactionType { get; } | ||
|
||
/// <summary> | ||
/// 事务参与方ID | ||
/// </summary> | ||
string ParticipantId { get; } | ||
|
||
/// <summary> | ||
/// 事务参与方类型 | ||
/// </summary> | ||
byte ParticipantType { get; } | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Eventual2PC/Commands/ITransactionInitiatorAddPreCommitFailedParticipantCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace Eventual2PC.Commands | ||
{ | ||
/// <summary> | ||
/// 事务发起方添加预提交失败的参与方 | ||
/// </summary> | ||
public interface ITransactionInitiatorAddPreCommitFailedParticipantCommand | ||
{ | ||
/// <summary> | ||
/// 事务ID | ||
/// </summary> | ||
string TransactionId { get; } | ||
|
||
/// <summary> | ||
/// 事务类型 | ||
/// </summary> | ||
byte TransactionType { get; } | ||
|
||
/// <summary> | ||
/// 事务参与方ID | ||
/// </summary> | ||
string ParticipantId { get; } | ||
|
||
/// <summary> | ||
/// 事务参与方类型 | ||
/// </summary> | ||
byte ParticipantType { get; } | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Eventual2PC/Commands/ITransactionInitiatorAddPreCommitSucceedParticipantCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace Eventual2PC.Commands | ||
{ | ||
/// <summary> | ||
/// 事务发起方添加预提交成功的参与方 | ||
/// </summary> | ||
public interface ITransactionInitiatorAddPreCommitSucceedParticipantCommand | ||
{ | ||
/// <summary> | ||
/// 事务ID | ||
/// </summary> | ||
string TransactionId { get; } | ||
|
||
/// <summary> | ||
/// 事务类型 | ||
/// </summary> | ||
byte TransactionType { get; } | ||
|
||
/// <summary> | ||
/// 事务参与方ID | ||
/// </summary> | ||
string ParticipantId { get; } | ||
|
||
/// <summary> | ||
/// 事务参与方类型 | ||
/// </summary> | ||
byte ParticipantType { get; } | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Eventual2PC/Commands/ITransactionInitiatorAddRolledbackParticipantCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace Eventual2PC.Commands | ||
{ | ||
/// <summary> | ||
/// 事务发起方添加已回滚的参与方 | ||
/// </summary> | ||
public interface ITransactionInitiatorAddRolledbackParticipantCommand | ||
{ | ||
/// <summary> | ||
/// 事务ID | ||
/// </summary> | ||
string TransactionId { get; } | ||
|
||
/// <summary> | ||
/// 事务类型 | ||
/// </summary> | ||
byte TransactionType { get; } | ||
|
||
/// <summary> | ||
/// 事务参与方ID | ||
/// </summary> | ||
string ParticipantId { get; } | ||
|
||
/// <summary> | ||
/// 事务参与方类型 | ||
/// </summary> | ||
byte ParticipantType { get; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/Eventual2PC/Commands/ITransactionParticipantCommitCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Eventual2PC.Commands | ||
{ | ||
/// <summary> | ||
/// 事务参与方提交命令 | ||
/// </summary> | ||
public interface ITransactionParticipantCommitCommand | ||
{ | ||
/// <summary> | ||
/// 事务ID | ||
/// </summary> | ||
string TransactionId { get; } | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Eventual2PC/Commands/ITransactionParticipantPreCommitCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace Eventual2PC.Commands | ||
{ | ||
/// <summary> | ||
/// 事务参与方预提交命令 | ||
/// </summary> | ||
public interface ITransactionParticipantPreCommitCommand | ||
{ | ||
/// <summary> | ||
/// 事务ID | ||
/// </summary> | ||
string TransactionId { get; } | ||
|
||
/// <summary> | ||
/// 事务类型 | ||
/// </summary> | ||
byte TransactionType { get; } | ||
|
||
/// <summary> | ||
/// 事务发起方ID | ||
/// </summary> | ||
string InitiatorId { get; } | ||
|
||
/// <summary> | ||
/// 事务发起方类型 | ||
/// </summary> | ||
byte InitiatorType { get; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/Eventual2PC/Commands/ITransactionParticipantRollbackCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Eventual2PC.Commands | ||
{ | ||
/// <summary> | ||
/// 事务参与方回滚命令 | ||
/// </summary> | ||
public interface ITransactionParticipantRollbackCommand | ||
{ | ||
/// <summary> | ||
/// 事务ID | ||
/// </summary> | ||
string TransactionId { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters