public void Save(String endpoint, EventStore.ClientAPI.Position position)
        {
            using (var session = _store.OpenSession())
            {
                var db = session.Load<Position>(endpoint);

                if (db == null)
                {
                    db = new Position { Id = endpoint };
                    session.Store(db);
                }

                db.CommitPosition = position.CommitPosition;
                db.PreparePosition = position.PreparePosition;

                session.SaveChanges();
            }
        }
Esempio n. 2
0
 public void FixtureSetup()
 {
     EventStore.Configure(Configure.AsDefault());
 }
Esempio n. 3
0
 public void delete_not_existing_stream()
 {
     EventStore.Configure(Configure.AsDefault());
     EventStore.DeleteStream(Guid.NewGuid().ToString());
 }
 public void SetSystemSettings(EventStore.Core.Data.SystemSettings systemSettings){}
 public EventStore.Core.Data.StreamMetadata SetStreamMetadata(string streamId, EventStore.Core.Data.StreamMetadata metadata){
     return null;
 }
 public EventStore.Core.Data.StreamMetadata UpdateStreamMetadata(int cacheVersion, string streamId, EventStore.Core.Data.StreamMetadata metadata){
     return null;
 }