private LaunchUriAsync ( [ uri ) : IAsyncOperation |
||
uri | [ | |
Résultat | IAsyncOperation |
async Task <bool> PlatformTryOpenAsync(Uri uri) { var canOpen = await PlatformCanOpenAsync(uri); if (canOpen) { return(await WinLauncher.LaunchUriAsync(uri).AsTask()); } return(canOpen); }
static async Task <bool> PlatformTryOpenAsync(Uri uri) { var canOpen = await PlatformCanOpenAsync(uri).ConfigureAwait(false); if (canOpen) { return(await WinLauncher.LaunchUriAsync(uri).AsTask().ConfigureAwait(false)); } return(canOpen); }
static Task PlatformOpenAsync(Uri uri) => WinLauncher.LaunchUriAsync(uri).AsTask();
Task <bool> PlatformOpenAsync(Uri uri) => WinLauncher.LaunchUriAsync(uri).AsTask();