I don't think anyone really knows how the players are selected.
Since it is possible that all teams in a league are assigned new owners and players just before the All-Star game, there might be no minimum service time, though the number of games might be a consideration in selection.