Exemple #1
0
            public override async Task <INavigableLocation?> GetNavigableLocationAsync(Workspace workspace, CancellationToken cancellationToken)
            {
                if (!await _navigator.CanNavigateToAsync(workspace, cancellationToken).ConfigureAwait(false))
                {
                    return(null);
                }

                return(new NavigableLocation((options, cancellationToken) =>
                                             _navigator.TryNavigateToAsync(workspace, options.PreferProvisionalTab, options.ActivateTab, cancellationToken)));
            }
Exemple #2
0
 public override Task <bool> CanNavigateToAsync(Workspace workspace, CancellationToken cancellationToken)
 => _navigator.CanNavigateToAsync(workspace, cancellationToken);