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();
            }
        }
Exemplo n.º 2
0
 public void FixtureSetup()
 {
     EventStore.Configure(Configure.AsDefault());
 }
Exemplo n.º 3
0
 public void delete_not_existing_stream()
 {
     EventStore.Configure(Configure.AsDefault());
     EventStore.DeleteStream(Guid.NewGuid().ToString());
 }
Exemplo n.º 4
0
 public void SetSystemSettings(EventStore.Core.Data.SystemSettings systemSettings){}
Exemplo n.º 5
0
 public EventStore.Core.Data.StreamMetadata SetStreamMetadata(string streamId, EventStore.Core.Data.StreamMetadata metadata){
     return null;
 }
Exemplo n.º 6
0
 public EventStore.Core.Data.StreamMetadata UpdateStreamMetadata(int cacheVersion, string streamId, EventStore.Core.Data.StreamMetadata metadata){
     return null;
 }