Example #1
0
 /// <summary>
 ///
 /// This creates or updates a private person contact in 360° based on
 /// PersonalIdNumber or ExternalID.
 /// If the supplied id does not exists in 360°, the contact is
 /// created.
 /// If the supplied id exists in 360° the contact is updated to mirror
 /// the supplied information.
 ///
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='synchronizePrivatePersonArgs'>
 /// (See model for parameter info)
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SynchronizePrivatePersonOKResponse> SynchronizePrivatePersonAsync(this IContactService operations, SynchronizePrivatePersonArgs synchronizePrivatePersonArgs = default(SynchronizePrivatePersonArgs), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.SynchronizePrivatePersonWithHttpMessagesAsync(synchronizePrivatePersonArgs, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <summary>
 ///
 /// This creates or updates a private person contact in 360° based on
 /// PersonalIdNumber or ExternalID.
 /// If the supplied id does not exists in 360°, the contact is
 /// created.
 /// If the supplied id exists in 360° the contact is updated to mirror
 /// the supplied information.
 ///
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='synchronizePrivatePersonArgs'>
 /// (See model for parameter info)
 /// </param>
 public static SynchronizePrivatePersonOKResponse SynchronizePrivatePerson(this IContactService operations, SynchronizePrivatePersonArgs synchronizePrivatePersonArgs = default(SynchronizePrivatePersonArgs))
 {
     return(Task.Factory.StartNew(s => ((IContactService)s).SynchronizePrivatePersonAsync(synchronizePrivatePersonArgs), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }