Exposed to genital herpes

I slept with someeone 2 days before he had an outbreak. We have been together 2 years he did not tell me. He has had it for a few years. Will I for sure contacted it? I am so so worried sick. I have looked at so many articles. Would I have contracted it by now?