public static ObexListenerContext GetContext(this ObexListener listener, int timeout) { var task = Task.Run(async() => await listener.GetContextAsync(timeout)); return(task.Result); }