Presuming that you have the power source it
needs (not to be assumed; spacecraft tend to
be DC power bus) the electronics should be
largely unaffected - until you get a heavy ion
track through the high voltage power supply,
which might let the smoke out (making you
many new friends in that closed can).
X-ray vacuum tube does not care. Control
electronics could be extremely radiation
sensitive, or less so, but unlikely to be immune
especially if built using cheapo commercial
ICs. If there is a destructive single event
phenomenon then time-to-fail is a purely
statistical thing, with "space weather" defined
by orbital height, inclination, solar activity
"rolling the dice on your behalf".