Пример #1
0
 /// <summary>
 /// Exercise 1 - Basic response (token and name).
 /// </summary>
 /// <remarks>
 /// This will call your api looking for a resource available at your base url
 /// /user.
 ///
 /// For example, if the url you request is "http://localhost:5001/api/answers"
 /// this will make a GET request to "http://localhost:5001/api/answers/user"
 ///
 /// The result will be a JSON object in the format {"name": "test", "token" :
 /// "1234-455662-22233333-3333"}
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='request'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <DeveloperExerciseServicesExerciseResult> > ApiExerciseExercise1PostAsync(this IDevChallengeResourceClient operations, DeveloperExerciseApiModelsTrolleyExerciseRequest request = default(DeveloperExerciseApiModelsTrolleyExerciseRequest), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ApiExerciseExercise1PostWithHttpMessagesAsync(request, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }