The court shall set the compensation of the receiver, which shall be considered a necessary expense of a receivership.