mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
add ConnectionStrings AppSettings
This commit is contained in:
parent
49c3ecc539
commit
dbc7944cdd
3 changed files with 12 additions and 1 deletions
7
src/FilterLists.Agent/AppSettings/ConnectionStrings.cs
Normal file
7
src/FilterLists.Agent/AppSettings/ConnectionStrings.cs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
namespace FilterLists.Agent.AppSettings
|
||||
{
|
||||
public class ConnectionStrings
|
||||
{
|
||||
public string FilterListsConnection { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -35,6 +35,7 @@ private static void AddConfiguration(this IServiceCollection services)
|
|||
.AddJsonFile("appsettings.json", true, true)
|
||||
.Build();
|
||||
services.Configure<ApplicationInsights>(config.GetSection(nameof(ApplicationInsights)));
|
||||
services.Configure<ConnectionStrings>(config.GetSection(nameof(ConnectionStrings)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
{
|
||||
"ApplicationInsights": {
|
||||
"InstrumentationKey": "test"
|
||||
"InstrumentationKey": ""
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"FilterListsConnection": ""
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue