Esempio n. 1
0
        public MemoryStore(params DurableEvent <T>[] events) : this()
        {
            var ordered = events.OrderBy(e => e.Offset);

            foreach (var durableEvent in ordered)
            {
                this.events = this.events.Add(durableEvent.Offset, durableEvent);
                this.offset = (long)durableEvent.Offset;
            }
        }