public void SaveEventStore(EventStore eventStore) { try { using (var store = IsolatedStorageFile.GetUserStoreForApplication()) using (var stream = new IsolatedStorageFileStream(_storageKey, FileMode.Create, FileAccess.Write, store)) { var output = Newtonsoft.Json.JsonConvert.SerializeObject(eventStore); using (var sw = new StreamWriter(stream)) { sw.Write(output); } } } catch { } }
private AppEventsClient() { Rules = new List <Rule>(); EventStore = new EventStore(); }