using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Remotely.Shared.Extensions { public static class TaskExtensions { public static T ToResult(this Task task) { return task.ConfigureAwait(false).GetAwaiter().GetResult(); } } }