You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
399 B
22 lines
399 B
namespace Connected.ServiceModel.Transactions
|
|
{
|
|
public enum MiddlewareTransactionState
|
|
{
|
|
Active = 1,
|
|
Committing = 2,
|
|
Reverting = 3,
|
|
Completed = 4
|
|
}
|
|
|
|
public interface ITransactionContext
|
|
{
|
|
event EventHandler? StateChanged;
|
|
MiddlewareTransactionState State { get; }
|
|
void Register(ITransactionClient client);
|
|
bool IsDirty { get; set; }
|
|
|
|
Task Rollback();
|
|
Task Commit();
|
|
}
|
|
}
|