Example #1
0
        public Task DropEverythingAsync()
        {
            TicketStore.DropTable();

            IsInitialized = false;
            return(Task.FromResult(true));
        }
Example #2
0
        /// <summary>
        /// Syncs all tables.
        /// </summary>
        /// <returns>The all async.</returns>
        public async Task <bool> SyncAllAsync(bool syncUserSpecific)
        {
            if (!IsInitialized)
            {
                await InitializeAsync();
            }

            var taskList = new List <Task <bool> >();

            taskList.Add(TicketStore.SyncAsync());

            var successes = await Task.WhenAll(taskList).ConfigureAwait(false);

            return(successes.Any(x => !x));//if any were a failure.
        }