コード例 #1
0
 /// <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());
 }
コード例 #2
0
 /// <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();
 }