/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='contextLastViewedMaterialCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> RecordLastViewedMaterialAsync(this IMaterialApi operations, LMSApplicationCoreCommandsContextLastViewedMaterialCommand contextLastViewedMaterialCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RecordLastViewedMaterialWithHttpMessagesAsync(contextLastViewedMaterialCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='contextLastViewedMaterialCommand'> /// </param> /// <param name='lang'> /// </param> public static object RecordLastViewedMaterial(this IMaterialApi operations, LMSApplicationCoreCommandsContextLastViewedMaterialCommand contextLastViewedMaterialCommand, string lang) { return(operations.RecordLastViewedMaterialAsync(contextLastViewedMaterialCommand, lang).GetAwaiter().GetResult()); }