So I'm trying to add a HttpContextAccessor to my startup.cs file and I find these two options.
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
services.AddHttpContextAccessor();
So my question is, do I add both of them or just one? And what is the difference between them?