Exemplo n.º 1
0
        /// <param name='operations'>
        /// Reference to the XamMvvmAndWebServices.ICustomers.
        /// </param>
        /// <param name='id'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <Customer> GetCustomerAsync(this ICustomers operations, int id, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <XamMvvmAndWebServices.Models.Customer> result = await operations.GetCustomerWithOperationResponseAsync(id, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }