public async Task <ImmutableArray <NavigationBarItem> > GetItemsAsync(Document document, ITextVersion textVersion, CancellationToken cancellationToken) { var items = await _service.GetItemsAsync(document, cancellationToken).ConfigureAwait(false); return(items == null ? ImmutableArray <NavigationBarItem> .Empty : ConvertItems(items, textVersion)); }
async Task <ImmutableArray <NavigationBarItem> > INavigationBarItemService.GetItemsAsync( Document document, bool forceFrozenPartialSemanticsForCrossProcessOperations, ITextVersion textVersion, CancellationToken cancellationToken) { var items = await _service.GetItemsAsync(document, cancellationToken).ConfigureAwait(false); return(items == null ? ImmutableArray <NavigationBarItem> .Empty : ConvertItems(items, textVersion)); }