Example #1
0
        public void Save(ObservableQueue <ActivityMessage> queue)
        {
            var list = queue.ToList();

            var serializator = new SerializatorIso <List <ActivityMessage> >();

            serializator.Serialize(FileName, list);
        }
Example #2
0
        private string GetSendJson(ObservableQueue <ActivityMessage> pendingData)
        {
            var messageMapper  = new MessageMapper(encryptor);
            var messages       = messageMapper.MapCollection(pendingData.ToList());
            var jsonSerializer = new JsonSerializer();

            return(jsonSerializer.Serialize(messages));
        }