/// <summary> /// Set, update or delete user property /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='userId'> /// The user identifier. /// </param> /// <param name='body'> /// The property to set update or delete. Supported properties are: SubjectId. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Status> SetPropertyAsync(this IUser operations, System.Guid userId, UserPropertyDto body = default(UserPropertyDto), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.SetPropertyWithHttpMessagesAsync(userId, body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Set, update or delete user property /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='userId'> /// The user identifier. /// </param> /// <param name='body'> /// The property to set update or delete. Supported properties are: SubjectId. /// </param> public static Status SetProperty(this IUser operations, System.Guid userId, UserPropertyDto body = default(UserPropertyDto)) { return(operations.SetPropertyAsync(userId, body).GetAwaiter().GetResult()); }