Samples.WebJobs.Core
Samples.WebJobs.Core copied to clipboard
UserSecrets
Do you have an example using UserSecrets?
I do:
var environmentName = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); if (string.Equals(environmentName, "development", StringComparison.OrdinalIgnoreCase)) { builder.AddUserSecrets<Program>(); }
And add in the user secret location to the project.
But I was wondering if there was a better way.