every mechanical or electrical item has an operating life, but these two items, are probably the most durable moving parts in the marker.
Both solenoids and microswitches are mass produced and well established designs, due to this fact, they have extremely long operational lifes.