/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='userProfileUpdateCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <string> UpdateUserProfileAsync(this IUserProfileApi operations, LMSApplicationCoreCommandsUserProfileUpdateCommand userProfileUpdateCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateUserProfileWithHttpMessagesAsync(userProfileUpdateCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='userProfileUpdateCommand'> /// </param> /// <param name='lang'> /// </param> public static string UpdateUserProfile(this IUserProfileApi operations, LMSApplicationCoreCommandsUserProfileUpdateCommand userProfileUpdateCommand, string lang) { return(operations.UpdateUserProfileAsync(userProfileUpdateCommand, lang).GetAwaiter().GetResult()); }