Thought experiment: In an unfortunate accident in the future my heart will stop exactly at 0:00:00 due to a cause which kills me instantly but leaves my body intact (poison, electric shock, whatever). Now "I" does not mean only my body cells, but also extremely many microorganisms on my skin, in my blood and in my innards. These will not vanish instantly with my death.
Viruses have no metabolism so I see no problem that e.g. an influenza virus on my hand which I used to cough before should still be contagious. Bacteria on the other hand will find the environment (depleting oxgen level, sinking temperature) more and more hostile.
So my question is: How long can contagious microorganisms survive my demise ? Describe after which time they are neutralized and why. And after which time is my body completely harmless ?
ADDITION: This answer is not influenced by a specific disease. The question I ask is more from a scientific view, so if you have bad feelings by the question or the way I ask it, it is not intended. If you have the fear that answering the question truthfully could be wrongly understood by laymen, say so.