Immunity to intracellular microbial pathogens