Ejemplo n.º 1
0
        public NotRequired <int> GetIndex(string stream, string owningProcess)
        {
            EventIndexStorageStreamId key = EventIndexStorageStreamId.Parse(stream, owningProcess);

            return(!sdk.HasEventIndex(key) ? new NotRequired <int>() : sdk.GetEventIndex(key));
        }
Ejemplo n.º 2
0
 public void Store(string stream, string owningProcess, int index)
 {
     sdk.StoreEventIndex(EventIndexStorageStreamId.Parse(stream, owningProcess), index);
 }