Esempio n. 1
0
        static SnapshotItem Generate(string key, string value, long sequence)
        {
            var item = new SnapshotItem();

            item.AsPublicSnapshot(key, value, typeof(string), sequence);
            item.Serialize(serializer);
            return(item);
        }
Esempio n. 2
0
        static SnapshotItem Generate(int value, long sequence, int remaining)
        {
            var item = new SnapshotItem();

            item.AsPartOfSystemSnapshot(sequence, remaining, "key", value, value.GetType());
            item.Serialize(serializer);
            return(item);
        }