base.Apply(newContext, bindObj, targetProperty, fromBindingContextChanged);
- Element templatedParent = await TemplateUtilities.FindTemplatedParentAsync(view);
+ Element templatedParent = await TemplateUtilities.FindTemplatedParentAsync(view).ConfigureAwait(false);
ApplyInner(templatedParent, bindObj, targetProperty);
}
if (element.RealParent is Application)
return null;
- element = await GetRealParentAsync(element);
+ element = await GetRealParentAsync(element).ConfigureAwait(false);
while (!Application.IsApplicationOrNull(element))
{
var controlTemplated = element as IControlTemplated;
- element = await GetRealParentAsync(element);
+ element = await GetRealParentAsync(element).ConfigureAwait(false);
}
return null;
public async Task<Stream> GetStreamAsync(Uri uri, CancellationToken cancellationToken)
{
using (var client = new HttpClient())
- using (HttpResponseMessage response = await client.GetAsync(uri, cancellationToken))
- return await response.Content.ReadAsStreamAsync();
+ using (HttpResponseMessage response = await client.GetAsync(uri, cancellationToken).ConfigureAwait(false))
+ return await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
}
public Assembly[] GetAssemblies()
win.AddFrameRenderedCallback(callback, 0);
- await Task.Delay(500);
+ await Task.Delay(500).ConfigureAwait(false);
Assert.IsTrue(isCalled, "isCalled should be true");
}
win.AddFramePresentedCallback(callback, 0);
- await Task.Delay(500);
+ await Task.Delay(500).ConfigureAwait(false);
Assert.IsTrue(isCalled, "isCalled should be true");
}
var testId = 9;
win.AddFrameRenderedCallback(callback, testId);
- await Task.Delay(500);
+ await Task.Delay(500).ConfigureAwait(false);
Assert.AreEqual(testId, checkId, "should be same");
}
var testId = 7;
win.AddFramePresentedCallback(callback, testId);
- await Task.Delay(500);
+ await Task.Delay(500).ConfigureAwait(false);
Assert.AreEqual(testId, checkId, "should be same");
}
player.Display = new Tizen.Multimedia.Display(win);
- await player.PrepareAsync();
+ await player.PrepareAsync().ConfigureAwait(false);
tlog.Fatal(tag, $"await player.PrepareAsync();");
player.Start();