よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
private void Window_Loaded(object sender, RoutedEventArgs e) { _ping.SendAsync().ContinueWith(async(x) => { if (x.IsCompleted && !x.IsFaulted && !x.IsCanceled && x.Result) { await _initializeData.DoAsync(); } }, TaskScheduler.FromCurrentSynchronizationContext()); }