Encounter-based approach to diffusion with resetting.