예제 #1
0
        internal async Task RecordScanAsync(Guid id)
        {
            var logRecord = BuildLogRecord(id);

            if (1 == await DataRetrievalService.WriteBarcodeScanRecord(logRecord))
            {
                //Queue up the record for upload to the Azure Database
                await DataRetrievalService.QueueAsync(logRecord.BarcodeScanLogId, QueueableObjects.BarcodeScanLog);

                //See if right now is a good time to upload the data - 10 records at a time
                DataRetrievalService.StartSafeQueuedUpdates();
                //navigate
                await NavService.NavigateTo <LoyaltyBonusViewModel>();
            }
            else
            {
                //TODO: rts - everything did not work out very well - write code here
            }
        }