コード例 #1
0
        /// <param name='operations'>
        /// Reference to the ContactsList.MVC.IContacts.
        /// </param>
        /// <param name='contact'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <Contact> PostAsync(this IContacts operations, Contact contact, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <ContactsList.MVC.Models.Contact> result = await operations.PostWithOperationResponseAsync(contact, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }