public void Add(DataUnit data, ITransactionContext context) { context.Exclusive(); map.Add(data.Key, data); }
public void Update(DataUnit data, ITransactionContext context) { context.Exclusive(); map[data.Key] = data; }
public void Add(DataUnit data, Transaction activeTransaction) { storage.Add(data, contextCollection.Get(activeTransaction)); }