private void Show(IWindowViewMediator viewMediator, INavigationOperation operation, IDataContext context, TaskCompletionSource <object> tcs) { try { var task = viewMediator.ShowAsync(operation.ToOperationCallback(), context); _currentTask = task; tcs.TrySetFromTask(task); } catch (Exception e) { tcs.TrySetException(e); throw; } }
private void Show(IWindowViewMediator viewMediator, INavigationOperation operation, IDataContext context, TaskCompletionSource<object> tcs) { try { var task = viewMediator.ShowAsync(operation.ToOperationCallback(), context); _currentTask = task; tcs.TrySetFromTask(task); } catch (Exception e) { tcs.TrySetException(e); throw; } }