Azure Notification Hub where to specify connection info?
SSB
111
Reputation points
Hi,
I am following the tutorial in the link below to send push notifications from my WebAPI - they are saying to specify the Notification Hub Name and the Connection string using dotnet user-secrets
Is there anyway i can just set these in the code directly?
or via the appsettings.json file?
I know its not best-practice, but this is a small app right now
dotnet user-secrets init
dotnet user-secrets set "NotificationHub:Name" <value>
dotnet user-secrets set "NotificationHub:ConnectionString" <value>
Sign in to answer