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