### Situation

I have 3 dotnet core projects in question:

* Web API
* Worker Service
* Class Library

In the class library, I have a shared EmailService class that I register for dependency injection in both the Web API and the Worker Service.

Both the Web API and Worker Service projects have the same config section for my sendgrid API key, and they are bound to a POCO using the IOptions pattern in the same exact way. They are both registered with the `AddScoped` method. But the actual class implementation for EmailService is in the shared class library. Running locally does not pickup my user-secrets in either the class library (which probably makes sense) as well as the ETL user-secrets. Both user secrets share the same exact value of json.

### Problem

When I set my user-secrets for the ETL project and run them locally, the API key I have for my send grid account is not getting picked up because, I think, the class is defined in the class library.

### What I've tried

I tried adding the same user-secrets to the class library as well, but this doesn't seem to work and I'm assuming that is because there is no appsettings.json in my class library, as probably there shouldn't be.