Exemplo n.º 1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetAsync(this IAssessmentsMessages operations, string lang, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(lang, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='assessmentMessage'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> HandleMessageAsync(this IAssessmentsMessages operations, LMSApplicationCoreCommandsAssessmentAssessmentMessagesAssessmentIncomingMessage assessmentMessage, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.HandleMessageWithHttpMessagesAsync(assessmentMessage, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 3
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='lang'>
 /// </param>
 public static object Get(this IAssessmentsMessages operations, string lang)
 {
     return(operations.GetAsync(lang).GetAwaiter().GetResult());
 }
Exemplo n.º 4
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static object GetUserLearningObjectives(this IAssessmentsMessages operations)
 {
     return(operations.GetUserLearningObjectivesAsync().GetAwaiter().GetResult());
 }
Exemplo n.º 5
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='assessmentMessage'>
 /// </param>
 public static object HandleMessage(this IAssessmentsMessages operations, LMSApplicationCoreCommandsAssessmentAssessmentMessagesAssessmentIncomingMessage assessmentMessage)
 {
     return(operations.HandleMessageAsync(assessmentMessage).GetAwaiter().GetResult());
 }