Bi-directional solenoids are constructed using two separate coils housed within one enclosure. By powering the respective solenoid coil, the shaft pivots in two directions.
eBay