Beispiel #1
0
 /// <summary>
 ///
 /// Retrieves private persons from 360° based on criteria defined in
 /// the input parameter. At least one criteria (Name, Recno or
 /// PersonalIdNumber) must be given.
 ///
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='getPrivatePersonsArgs'>
 /// (See model for parameter info)
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <GetPrivatePersonsOKResponse> GetPrivatePersonsAsync(this IContactService operations, GetPrivatePersonsArgs getPrivatePersonsArgs = default(GetPrivatePersonsArgs), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetPrivatePersonsWithHttpMessagesAsync(getPrivatePersonsArgs, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <summary>
 ///
 /// Retrieves private persons from 360° based on criteria defined in
 /// the input parameter. At least one criteria (Name, Recno or
 /// PersonalIdNumber) must be given.
 ///
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='getPrivatePersonsArgs'>
 /// (See model for parameter info)
 /// </param>
 public static GetPrivatePersonsOKResponse GetPrivatePersons(this IContactService operations, GetPrivatePersonsArgs getPrivatePersonsArgs = default(GetPrivatePersonsArgs))
 {
     return(Task.Factory.StartNew(s => ((IContactService)s).GetPrivatePersonsAsync(getPrivatePersonsArgs), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }