This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IApplicationSettings | |
{ | |
string Get(string key); | |
string Get(string key, string defaultValue); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"IsEncrypted": false, | |
"Values": { | |
"AzureWebJobsStorage": "UseDevelopmentStorage=true", | |
"SuperApiKey": "VERY_SECRET_SECURE", | |
"FUNCTIONS_WORKER_RUNTIME": "dotnet" | |
}, | |
"ConnectionStrings": { | |
"SqlConnectionString": "MyConnectionString" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ApplicationSettings | |
{ | |
public string AzureWebJobsStorage { get; set; } | |
public string SuperApiKey { get; set; } | |
} | |
public class ConnectionStrings | |
{ | |
public string SqlConnectionString { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[assembly: FunctionsStartup(typeof(Startup))] | |
namespace MyFunctionsProject | |
{ | |
public class Startup : FunctionsStartup | |
{ | |
public override void Configure(IFunctionsHostBuilder builder) | |
{ | |
// this will bind to the "Values" section of the configuration | |
builder | |
.Services |
OlderNewer