public LogsViewModel(IBeaconManager beaconManager, IUserDialogs dialogs, LogSqliteConnection conn) { this.beaconManager = beaconManager; this.conn = conn; this.Purge = ReactiveCommand.CreateFromTask(async() => { var result = await dialogs.ConfirmAsync("Are you sure you wish to purge all logs?"); if (result) { this.conn.DeleteAll <DbBeaconPing>(); this.LoadData(); } }); }
public MonitoringTask(IBeaconManager beaconManager, LogSqliteConnection conn) { this.beaconManager = beaconManager; this.conn = conn; }