/// <summary> /// Gets information about the user surveys. This API is exposed as part of our /// efforts to make all personal data accessible. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <UserSurvey> > GetAsync(this IHappinessSurvey operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets information about the user surveys. This API is exposed as part of our /// efforts to make all personal data accessible. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IList <UserSurvey> Get(this IHappinessSurvey operations) { return(operations.GetAsync().GetAwaiter().GetResult()); }