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