/// <summary> /// Inserts the event. /// </summary> /// <param name="tradeEvent">The trade event.</param> private void InsertEvent(TradeEvent tradeEvent) { using (var service = new Lurker.Patreon.DatabaseService()) { service.Insert(tradeEvent); } }
/// <summary> /// Inserts the event. /// </summary> /// <param name="tradeEvent">The trade event.</param> private void InsertEvent(TradeEvent tradeEvent) { Caliburn.Micro.Execute.OnUIThread(() => { try { using (var service = new Lurker.Patreon.DatabaseService()) { service.Insert(tradeEvent); } } catch { } }); }