Exemplo n.º 1
0
        public MindReader(IEventStore store, StreamName streamName,  EmoEngine engine)
        {
            this.engine = engine;
            this.store = store;
            this.streamName = streamName;

            RegisterHandlers();
        }
Exemplo n.º 2
0
 public void Store(StreamName streamName, object @event)
 {
     eventStoreConnection.AppendToStreamAsync(streamName, ExpectedVersion.Any, JsonEventData.Create(Guid.NewGuid(), @event, this.writeMetaData));
 }