public void Save(ObservableQueue <ActivityMessage> queue) { var list = queue.ToList(); var serializator = new SerializatorIso <List <ActivityMessage> >(); serializator.Serialize(FileName, list); }
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)); }