Example #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceId'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CountryAndPostalCode> GetCountryAndPostalCodeAsync(this ISkillAddressInformationClient operations, string deviceId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetCountryAndPostalCodeWithHttpMessagesAsync(deviceId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceId'>
 /// </param>
 public static CountryAndPostalCode GetCountryAndPostalCode(this ISkillAddressInformationClient operations, string deviceId)
 {
     return(operations.GetCountryAndPostalCodeAsync(deviceId).GetAwaiter().GetResult());
 }