private async static void TextReceiver_TextReceiveFinished(TextTransfer.TextReceiveEventArgs e) { try { Activity.Invoke(); if (!e.Success) { ShowToast(context, "Failed to receive text.", ToastLength.Long); return; } CopyTextToClipboard(context, (Guid)e.Guid); } finally { await progressNotifier?.ClearProgressNotification(); } }