/// <summary> /// Expand an bookmark /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='bookmarkId'> /// Bookmark ID /// </param> /// <param name='parameters'> /// The parameters required to execute an expand operation on the given /// bookmark. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BookmarkExpandResponse> ExpandAsync(this IBookmarkOperations operations, string resourceGroupName, string workspaceName, string bookmarkId, BookmarkExpandParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ExpandWithHttpMessagesAsync(resourceGroupName, workspaceName, bookmarkId, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
private void InitSubApis() { _articleOperations = new ArticleTemplate(RestTemplate, IsAuthorized); _bookmarkOperations = new BookmarkTemplate(RestTemplate, IsAuthorized); _contributionOperations = new ContributionTemplate(RestTemplate, IsAuthorized); _rootOperations = new RootTemplate(RestTemplate, IsAuthorized); _userOperations = new UserTemplate(RestTemplate, IsAuthorized); }
private void InitSubApis() { _articleOperations = new ArticleTemplate(RestTemplate, IsAuthorized); _bookmarkOperations = new BookmarkTemplate(RestTemplate, IsAuthorized); _contributionOperations = new ContributionTemplate(RestTemplate, IsAuthorized); _rootOperations = new RootTemplate(RestTemplate, IsAuthorized); _userOperations = new UserTemplate(RestTemplate, IsAuthorized); }
/// <summary> /// Expand an bookmark /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='bookmarkId'> /// Bookmark ID /// </param> /// <param name='parameters'> /// The parameters required to execute an expand operation on the given /// bookmark. /// </param> public static BookmarkExpandResponse Expand(this IBookmarkOperations operations, string resourceGroupName, string workspaceName, string bookmarkId, BookmarkExpandParameters parameters) { return(operations.ExpandAsync(resourceGroupName, workspaceName, bookmarkId, parameters).GetAwaiter().GetResult()); }