Example #1
0
        public MindReader(IEventStore store, StreamName streamName,  EmoEngine engine)
        {
            this.engine = engine;
            this.store = store;
            this.streamName = streamName;

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