示例#1
0
 public AutoConsumerUpdater(
     IAutoMessageConsumer autoConsumer,
     IEntryUpdater entryUpdater)
 {
     autoConsumer.MessageReceived += OnMessageReceived;
     AutoConsumer = autoConsumer;
     EntryUpdater = entryUpdater;
 }
示例#2
0
 public EntryBroker(
     IEntryCreator creator,
     IEntryReader reader,
     IEntryUpdater updater,
     IEntryDeleter deleter)
 {
     _creator = creator;
     _reader  = reader;
     _updater = updater;
     _deleter = deleter;
 }