public static async Task RunAsync(this IRequiresUIAccess context, Action action) { #pragma warning disable 1998 // Required to force to Task overloaded method await context.UIContext.RunAsync(async () => action()); #pragma warning restore 1998 }