private void OnRemoteTaskSucceeded(object sender, TaskSucceededEventArgs args) { this.OnRemoteTaskDone(tcs => tcs.TrySetResult(args.Result)); }
// must be public to be bindable to remote events public void OnTaskSucceeded(object sender, TaskSucceededEventArgs args) { this.taskSucceededEvent.InvokeEvent(e => e(sender, args)); }