/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='comment'> /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static AzureOperationResponse CreateCommentWithHttpMessages(this IAPIClient operations, CommentModelInner comment = default(CommentModelInner), Dictionary <string, List <string> > customHeaders = null) { return(operations.CreateCommentWithHttpMessagesAsync(comment, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='comment'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task CreateCommentAsync(this IAPIClient operations, CommentModelInner comment = default(CommentModelInner), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.CreateCommentWithHttpMessagesAsync(comment, null, cancellationToken).ConfigureAwait(false)).Dispose(); }