DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
TransactionEvent.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 
5 
6 namespace Deveel.Data.Transactions {
7  public sealed class TransactionEvent : Event {
8  public TransactionEvent(int commitId, TransactionEventType eventType) {
9  CommitId = commitId;
10  EventType = eventType;
11  }
12 
13  public int CommitId { get; private set; }
14 
15  public TransactionEventType EventType { get; private set; }
16 
17  protected override void GetEventData(Dictionary<string, object> data) {
18  data[KnownEventMetadata.CommitId] = CommitId;
19  data["transaction.eventType"] = EventType.ToString();
20  }
21  }
22 }
override void GetEventData(Dictionary< string, object > data)
TransactionEvent(int commitId, TransactionEventType eventType)