예제 #1
0
 /// <summary>
 /// Complete registration of a new user
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='email'>
 /// The email of the user
 /// </param>
 /// <param name='dto'>
 /// The users' secret token, new name and new password
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <object> CompleteRegistrationByemaildtoAsync(this IUsers operations, string email, CompleteUserRegistrationDto dto, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.CompleteRegistrationByemaildtoWithHttpMessagesAsync(email, dto, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #2
0
 /// <summary>
 /// Complete registration of a new user
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='email'>
 /// The email of the user
 /// </param>
 /// <param name='dto'>
 /// The users' secret token, new name and new password
 /// </param>
 public static object CompleteRegistrationByemaildto(this IUsers operations, string email, CompleteUserRegistrationDto dto)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IUsers)s).CompleteRegistrationByemaildtoAsync(email, dto), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }