A method of operating an electric downhole safety valve, the electric downhole safety valve comprising a flapper, an internal tubing sleeve, a return spring, an actuator comprising a piston, downhole electronics, an electric magnet, and a magnet, wherein one of the electric magnet and the magnet is operably coupled to the piston, and the other of the electric magnet and the magnet is coupled to, embedded in, or surrounded by a cover operably coupled to the internal tubing sleeve, the method comprising:
- maintaining the electric magnet and the magnet in a sealed common fluid zone;
- providing a command from the surface to the downhole electronics;
- in response to the command from the surface, activating the electric magnet;
- axially moving the piston, thereby shifting the internal tubing sleeve from a closed position to an open position;
- compressing the return spring;
- and
- opening the flapper.