public void Register(ITranscationProducer producer, TransactionMemberType type = TransactionMemberType.UPDATE) { if (MembersDictionary.ContainsKey(producer)) { var member = MembersDictionary[producer]; members.Remove(member); members.Add(member); } else { var member = new TransactionMember() { MemberType = type, Producer = producer }; members.Add(member); MembersDictionary.Add(producer, member); } }
public void Enqueue(ITranscationProducer producer) { }