コード例 #1
0
        private async Task AddtoDBAsync()
        {
            AppClient client = new AppClient();

            try
            {
                await Task.Run(() => client.AddNotification(NewNotification.NewNotification));
            }

            finally
            {
                client.Close();
            }
        }