That solenoid looking thing on the bottom of the carb is the anti-bang switch(afterfire solenoid). Has nothing to do with your issue. your issue is the float valve is stuck open and not shutting off the flow of fuel into the carb, which is overflowing and filling the carb, intake manifold, most like is now in the oil, which will have to be changed along with the oil filter.
Time to remove the carb, disassembly ,clean paying special attention to the seat area of the float valve, and install a carb repair kit and reassemble.