/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='token'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetAsync(this IRegistrationAppointments operations, string token, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(token, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='token'> /// </param> public static object Get(this IRegistrationAppointments operations, string token) { return(operations.GetAsync(token).GetAwaiter().GetResult()); }