/// <param name='operations'> /// Reference to the ContactsConsoleApplication.IContacts. /// </param> /// <param name='contact'> /// Required. /// </param> /// <param name='cancellationToken'> /// Cancellation token. /// </param> public static async Task <string> PostByContactAsync(this IContacts operations, Contact contact, CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Microsoft.Rest.HttpOperationResponse <string> result = await operations.PostByContactWithOperationResponseAsync(contact, cancellationToken).ConfigureAwait(false); return(result.Body); }